# 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?

Sage says that a divergent integral converges

add a comment

0

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

Asked: **
2015-11-10 17:07:47 -0500
**

Seen: **106 times**

Last updated: **Nov 11 '15**

Testing planarity on embedding gives wrong result

Plot picewise function + infinity, error message

chromatic polynomial graph with loops

3d Plotting not working when using server pool

Unable to create a contour_plot of a system of inequalities

How to get Sage 8.0 to plot matplotlib plots inline and typeset expressions on a Jupyter notebook?

Sagemath 8.0 and Sagemath 8.1 and Windows 10

How to load optional gap packages

Bug in general power of a matrix

sage cannot get the simplest form on the limit expression with binomial and exponential operations

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.