Status: Accepted
Owner: ondrej.certik
Labels: Type-Defect Priority-Medium
New issue 1607 by ondrej.certik: evaluating functions with singularity
should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
In [71]: e = Integral(sin(x)/x, (x, -1, 1))
In [72]: e.evalf()
Out[7
Comment #1 on issue 1607 by ondrej.certik: evaluating functions with
singularity should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
actually, it's pretty close to wolfram alpha.
--
You received this message because you are listed in the owner
or CC fields of this
Comment #2 on issue 1607 by asmeurer: evaluating functions with singularity
should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
I'm not so sure that this shouldn't be working. It's not an infinite
singularity. Maple also returns a value:
> integrate(sin(x)/x, x=
Updates:
Cc: fredrik.johansson
Comment #3 on issue 1607 by ondrej.certik: evaluating functions with
singularity should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
Right, I agree that it should work. It just doesn't seem to react on the
precision, I
don't
Comment #6 on issue 1607 by ondrej.certik: evaluating functions with
singularity should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
Ah, I see. Any ideas how to fix it? Detect division by 0 and skip that
point?
--
You received this message because you are listed
Comment #8 on issue 1607 by smichr: evaluating functions with singularity
should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
When a zero is detected, could evalf split the function into pieces?
--
You received this message because you are listed in the owner
or CC
Comment #9 on issue 1607 by fredrik.johansson: evaluating functions with
singularity should not return a number
http://code.google.com/p/sympy/issues/detail?id=1607
The quadrature includes 0 as an evaluation point for the interval [-1,1];
there's no
way around that fact. At best, it could ma