Hi,
What did you expect? The function 1/x^2 is not integrable at 0. The
following (convergent) integrals does work
sage: integral(1/x^2, (x, 1, +oo))
1
sage: integral(1/x^2, (x, -oo, -1))
1
The following (divergent) integral produces the same result
sage: integral(1/x^2, (x, -1, 1))
Traceback (most recent call last):
...
ValueError: Integral is divergent.
Note that this kind of questions is better directed to either
https://ask.sagemath.org or
https://groups.google.com/g/sage-support.
Best
Vincent
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sage-devel+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/728a2f53-d3b2-48a4-99ff-47f15e025a41n%40googlegroups.com.