Ask Your Question
1

Sage says that a divergent integral converges

asked 2015-11-10 17:07:47 -0600

sharpfishr gravatar image

updated 2015-11-11 04:33:08 -0600

tmonteil gravatar image

When i use the command N(integrate(e^(-x)/x,x,0,oo)) Sage returns 37.2, but this integral obviously diverges. Is there any way to fix this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-11 04:32:42 -0600

tmonteil gravatar image

updated 2015-11-11 05:02:52 -0600

Thanks for reporting!

Actually, it is a known bug, see trac ticket 14274.

Sympy seems not able to solve it either, though it is able to see that the integral of 1/x diverges at 0.

sage: import sympy
sage: x = sympy.Symbol('x')
sage: from sympy import oo
sage: sympy.integrate(1/x,(x,0,oo))
nan
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-11-10 17:07:47 -0600

Seen: 98 times

Last updated: Nov 11 '15