You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to NIntegrate the function Sin[x]/x between -1 and 1. It has a removable singularity at x = 0. However, mathics shows General::ovfl: Overflow occurred in computation.
However, the numerical integral works when I try to integrate from -0.5 to 1 (i.e., when the absolute value of the limits are not equal).
I am using the AUR package in Manjaro.
$ mathics
Mathics 4.0.0
on CPython 3.9.7 (default, Aug 31 2021, 13:28:12)
using SymPy 1.9, mpmath 1.2.1, numpy 1.21.2, cython 0.29.24
Copyright (C) 2011-2021 The Mathics Team.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
See the documentation for the full license.
Quit by evaluating Quit[] or by pressing CONTROL-D.
In[1]:= NIntegrate[Sin[x]/x,{x,-1,1}]
General::ovfl: Overflow occurred in computation.
Out[1]= Overflow[]
In[2]:= NIntegrate[Sin[x]/x,{x,-0.5,1}]
Out[2]= 1.43919
In[3]:= NIntegrate[Sin[x]/x,{x,-Infinity,Infinity}]
General::ovfl: Overflow occurred in computation.
Out[3]= Overflow[]
The text was updated successfully, but these errors were encountered:
archisman-panigrahi
changed the title
Fails to NIntegrate and Integrate where removable singularities are present
Fails to NIntegrate where removable singularities are present
Nov 17, 2021
@apandada1 NIntegrate[Sin[x]/x, {x, -1.000000001, 1.}] strangely works, which makes me think this is SymPy related (the ovfl message is only raised twice, on an OverflowError and on a SymPy error).
I am trying to
NIntegrate
the functionSin[x]/x
between -1 and 1. It has a removable singularity atx = 0
. However,mathics
showsGeneral::ovfl: Overflow occurred in computation.
However, the numerical integral works when I try to integrate from -0.5 to 1 (i.e., when the absolute value of the limits are not equal).
I am using the AUR package in Manjaro.
The text was updated successfully, but these errors were encountered: