Hi,

You might have missed the first part of my message. I know that the
integral is divergent but Sage says it is zero. Thanks.

Best,
Sinan

On Thu, Oct 10, 2024 at 6:59 PM Vincent Delecroix <20100.delecr...@gmail.com>
wrote:

> 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
>
> On Thu, 10 Oct 2024 at 18:02, sinan...@gmail.com <sinankap...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I would like to report the following:
> >
> > I tried to integrate 1/x^2 from -oo to oo, and here is what I got:
> >
> > --
> > In cocalc, the series is calculated wrongly:
> > 'SageMath version 10.4, Release Date: 2024-07-19'
> > in: integral(1/x^2, (x,-oo,oo))
> > out: 0
> > --
> >
> > In sagecell.sagemath.org, everything seems to be fine:
> >
> > 'SageMath version 10.2, Release Date: 2023-12-03'
> >
> > integral(1/x^2, (x,-oo,oo))
> > ValueError: Integral is divergent.
> >
> > Thanks,
> >
> > --
> > 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+unsubscr...@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
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/-pDExtT6H4M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAGEwAA%3DC0H%3Di3aM99ouE3_5UaMnpaCSNVosLi%2B%2BROR3pKooJeg%40mail.gmail.com
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAP06J56EEuqF%3DDM2EoMdrm6HbfWhKK3MfJGCcrFtLxpCjC68ig%40mail.gmail.com.

Reply via email to