Status: New
Owner: nicolas.pourcelot
Labels: Type-Defect Priority-Medium WrongResult

New issue 2084 by nicolas.pourcelot: limit(1+1/x, x, 0, dir='-') fails
http://code.google.com/p/sympy/issues/detail?id=2084

sympy.limit(1/x,x,0,dir="-")
-oo

But :

limit(1+1/x,x,0,dir="-")
oo

That's because gruntz() is applied for 1/x, but some heuristics are first applied to all Add instances.

Heuristics apply simple substitution, unless NaN is returned ; but 1/0 returns oo, and not NaN.

1/0
oo
-1/0
-oo

I may patch limit to have more restrictive heuristics, but imo this isn't the right solution, since 1/0 should return NaN (or maybe Zoo ?) anyway.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to