Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-18 Thread codesite-noreply
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

Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-18 Thread codesite-noreply
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

Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-18 Thread codesite-noreply
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=

Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-18 Thread codesite-noreply
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

Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-19 Thread codesite-noreply
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

Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-21 Thread codesite-noreply
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

Issue 1607 in sympy: evaluating functions with singularity should not return a number

2009-08-21 Thread codesite-noreply
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