Integrate bug

Bugs

Modérateur : xcasadmin

nenad.miksa
Messages : 11
Inscription : mar. août 04, 2015 8:17 am

Integrate bug

Message par nenad.miksa » mer. août 12, 2015 11:20 am

Hi,

using Giac version 1.2.0 I am facing wrong results for relatively simple integrals:

Code : Tout sélectionner

0>> integrate(x/(x^50),x)
-1/805306368/(x^2/2)^24
1>> integrate(x/x^50,x)
-1/805306368/(x^2/2)^24
2>> integrate(1/(x^49),x)
-1/(48*x^48)
3>> version()
"giac 1.2.0-19, (c) B. Parisse and R. De Graeve, Institut Fourier, Universite de Grenoble I"
As you can see, calling integrate(1/(x^49),x) works correctly, but integrate(x/(x^50),x) gives completely different result. Shouldn't results be the same? Am I doing something wrong?

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Integrate bug

Message par parisse » mer. août 12, 2015 7:43 pm

Both results are correct, try normal on the first answer. The system did a change of variable t=x^2/2, explaining the somewhat strange first answer.

nenad.miksa
Messages : 11
Inscription : mar. août 04, 2015 8:17 am

Re: Integrate bug

Message par nenad.miksa » jeu. août 13, 2015 7:33 am

Thank you for the answer.

Répondre