Ask Your Question
1

Sage says that a divergent integral converges

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

sharpfishr gravatar image

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

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 11:32:42 +0100

tmonteil gravatar image

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

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-11 00:07:47 +0100

Seen: 301 times

Last updated: Nov 11 '15