bug report



On 6/3/12 6:45 AM, Evgeniy Maevskiy wrote:
> But for integrate(sin(x)/x,x); we have
> 
> -(%i*gamma_incomplete(0,%i*x)-%i*gamma_incomplete(0,-%i*x))/2
> 
> and then - correct result
> 
> integrate(sin(x)/x,x,0,inf);
> =>
> %pi/2
> 
> I do not understand what's going on here. Maybe someone can explain?

When doing definite integrals, maxima does not always just compute the
antiderivative and substitute the limits.  In this case. maxima has a
rule for sin(r*x)^n/x^m which is used.

Ray