Problem with evaluation of integration



-----Original Message----- 
From: Barton Willis
Sent: Thursday, February 17, 2011 7:01 AM
To: Chi Ben
Cc: maxima at math.utexas.edu
Subject: Re: [Maxima] Problem with evaluation of integration

By the way:

(%i1) load(abs_integrate)$
(%i2) integrate(a^x,x);
(%o2) a^x/log(a)

(%i3) integrate(x*a^x,x);
(%o3) ((log(a)*x-1)*%e^(log(a)*x))/log(a)^2

--Barton

-----maxima-bounces at math.utexas.edu wrote: -----

>When I'm using the integrate function to evaluate an expression, sometimes
>Maxima gives me a value after calculation. But sometimes it just gives me
>a formal mathematical expression. For example, when I enter this:

>integrate(e^(-x),x,1,5);

That got me thinking about pwint() since it basically computes antidiff's 
and subtracts. So pwint() works, pw.mac's integrate command.

(%i1) (load(pw), display2d:false)$
(%i2) pwint(e^(-x),x,1,5);
(%o2) 1/(e*log(e))-1/(e^5*log(e))
(%i3) pwint(%e^(-x),x,1,5);
(%o3) %e^-1-%e^-5

Rich