Re: [sage-devel] issue on infinite series

2024-10-10 Thread Sinan Kapçak
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

Re: [sage-devel] issue on infinite series

2024-10-10 Thread Dima Pasechnik
Hi, how do you run cocalc? At least, on cocalc.com with Sage 10.4, it works OK. Best, Dima On Thu, Oct 10, 2024 at 5:02 PM sinan...@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 se

Re: [sage-devel] issue on infinite series

2024-10-10 Thread Vincent Delecroix
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 (

[sage-devel] issue on infinite series

2024-10-10 Thread sinan...@gmail.com
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