[sage-support] Re: Bug in integrals

2021-12-16 Thread Juan Luis Varona
Thanks! It is clear that it is a bug provided by Maxima. I have checked already in the developer track the already known Maxima bugs in integrals and I have not found similar errors, so I have opened a ticket. Juan Luis El jueves, 16 de diciembre de 2021 a las 19:21:03 UTC+1, Emmanuel Charpent

[sage-support] Re: Bug in integrals

2021-12-16 Thread Emmanuel Charpentier
A nice one, indeed. Here, Sage seems to use Maxima’s integrator : sage: table([[u,(f(x)-g(x)).integrate(x,algorithm=u)] for u in ["maxima", "sympy", "giac", "fricas", "mathematica_free"]], header_row=["Algorithm", "Indefinite integral"]) Algorithm Indefinite integral +--

[sage-support] Re: Bug in integrals

2021-12-16 Thread Emmanuel Charpentier
Le mercredi 15 décembre 2021 à 20:43:07 UTC+1, juanlui...@gmail.com a écrit : > See this example: > > f(x)=(x+sin(3*x))*exp(-3*x*I) > g(x)=f(x).expand() > integral(f(x)-g(x),(x,0,2*pi)) > > The answer is I*pi, but it should be 0. > Huh ? f has no poles ; therefore, the value of the integrate be