ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 11 Nov 2015 04:32:42 -0600Sage says that a divergent integral convergeshttp://ask.sagemath.org/question/30620/sage-says-that-a-divergent-integral-converges/ 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?Tue, 10 Nov 2015 17:07:47 -0600http://ask.sagemath.org/question/30620/sage-says-that-a-divergent-integral-converges/Answer by tmonteil for <p>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?</p>
http://ask.sagemath.org/question/30620/sage-says-that-a-divergent-integral-converges/?answer=30629#post-id-30629Thanks for reporting!
Actually, it is a known bug, see [trac ticket 14274](http://trac.sagemath.org/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
Wed, 11 Nov 2015 04:32:42 -0600http://ask.sagemath.org/question/30620/sage-says-that-a-divergent-integral-converges/?answer=30629#post-id-30629