-
-
Notifications
You must be signed in to change notification settings - Fork 701
Open
Description
var('a b c x', domain='real')
A = (sin(a) * x^2+sin(b) *x + sin(c)) * exp(-x^2)
Aint = A.integrate(x,-infinity,infinity)
A.imag() is 0
Aint.imag() is a long expression, which doesn't simplify to 0. This surprising for the user.
A slightly different example, actually a generalization of the one above, just works:
var('a b c x', domain='real')
B = (a * x^2+b *x + c) * exp(-x^2)
Bint = B.integrate(x,-infinity,infinity)
Examples can be found here: http://demo.sagenb.org/home/pub/179
CC: @kcrisman
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/11655