For what it's worth, map works and may provide a practical workaround
depending on your circumstances:
(%i1) x^2*%e^(-x^2)*sin(x)^2+%e^(-x^2);
2 2
2 - x 2 - x
(%o1) x %e sin (x) + %e
(%i2) map(lambda([u],integrate(u,x,-inf,inf)),%);
- 1
%e sqrt(%pi) (%e + 1)
(%o2) ------------------------ + sqrt(%pi)
4
Viktor
-----Original Message-----
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of Detlef Schmicker
Sent: Friday, June 22, 2007 7:10 AM
To: maxima at math.utexas.edu
Subject: Integration has problems with sums
Hi,
I use
detlef at sarge:~$ maxima
Maxima 5.12.0 http://maxima.sourceforge.net
Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL)
and tried a simple integration.
If I integrate the sumands, everything works fine, but maxima is not
able to integrate the sum at once?
Is there a way, to change simplifications used for integration?
Thanks a lot,
Detlef
(%i3) x^2*%e^(-x^2)*sin(x)^2+%e^(-x^2);
2 2
2 - x 2 - x
(%o3) x %e sin (x) + %e
(%i4) integrate(%,x,-inf,inf);
inf
/ 2 2
[ 2 - x 2 - x
(%o4) I (x %e sin (x) + %e ) dx
]
/
- inf
(%i5) x^2*%e^(-x^2)*sin(x)^2;
2
2 - x 2
(%o5) x %e sin (x)
(%i6) integrate(%,x,-inf,inf);
- 1
%e sqrt(%pi) (%e + 1)
(%o6) ------------------------
4
(%i7) %e^(-x^2);
2
- x
(%o7) %e
(%i8) integrate(%,x,-inf,inf);
(%o8) sqrt(%pi)
(%i9)
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima