Ask Your Question

Sage says that a divergent integral converges

asked 2015-11-11 00:07:47 +0200

sharpfishr gravatar image

updated 2023-01-09 23:59:38 +0200

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

answered 2015-11-11 11:32:42 +0200

tmonteil gravatar image

updated 2015-11-11 12:02:52 +0200

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))
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


Asked: 2015-11-11 00:07:47 +0200

Seen: 252 times

Last updated: Nov 11 '15