Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Which version of sage do you use ? Mine gives

sage: h.integrate(t,algorithm='maxima')                                         
1/2*Ei(I*e^(I*t)) + 1/2*Ei(-I*e^(I*t))
sage: h.integrate(t,algorithm='giac')                                           
cos_integral(e^(I*t))
sage: h.integrate(t,algorithm='sympy')                                          
cos_integral(e^(I*t))

So one problem is that maxima is not using the correct primitive.

But well, at least one of our integrator gives a correct result in sage 9.4.beta2 :

sage: h.integrate(t,0,2*π,algorithm='maxima')                                   
0
sage: h.integrate(t,0,2*π,algorithm='giac')                                     
2*I*pi
sage: h.integrate(t,0,2*π,algorithm='sympy')                                    
0