You can get the correct result if you use gruntz() >>> gruntz(1/(x - 1), x, 1, dir="-") -oo
gruntz() is the internal algorithm that limit() uses when its heuristics fail. Unfortunately, because of http://code.google.com/p/sympy/issues/detail?id=2811 (I believe), limit() does not know that its heuristics have failed in this case. Aaron Meurer On Thu, Jun 28, 2012 at 3:22 PM, Aaron Meurer <[email protected]> wrote: > This is a known issue. See > http://code.google.com/p/sympy/issues/detail?id=3171 > > Aaron Meurer > > On Thu, Jun 28, 2012 at 3:10 PM, kita575 <[email protected]> wrote: >> In SymPy Live, >> (1/x).limit(x,0,dir='-') >> has a correct result -oo. >> But >> (1/(x-1)).limit(x,1,dir='-') >> has an incorrect result oo. >> Can you fix it? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/sympy/-/_rBxS0BtWgYJ. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/sympy?hl=en. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
