Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1479 by smichr: cannot compute leadterm; series.leadterm
http://code.google.com/p/sympy/issues/detail?id=1479

This is perhaps related to issues 1213 but here is a very simple expression
that exhibits the problem:

>>> a,x
(a, x)
>>> limit(log(a-x),x,oo) #no problem here
oo
>>> limit((1/a-x),x,oo) #no problem here
-oo + 1/a
>>> limit(log(1/a-x),x,oo) #but this fails
Traceback (most recent call last):
   File "<interactive input>", line 1, in <module>
   File "sympy\series\limits.py", line 77, in limit
     r = gruntz(e, z, z0, dir)
   File "sympy\sympy\series\gruntz.py", line 487, in gruntz
     return limitinf(e, z)
   File "sympy\series\gruntz.py", line 333, in limitinf
     c0, e0 = mrv_leadterm(e,x)
   File "sympy\series\gruntz.py", line 391, in mrv_leadterm
     mrv_leadterm_up = mrv_leadterm(e_up, x, Omega_up)
   File "sympy\series\gruntz.py", line 402, in mrv_leadterm
     return series.leadterm(wsym)
   File "sympy\core\basic.py", line 2212, in leadterm
     raise ValueError("cannot compute leadterm(%s, %s), got c=%s" % (self,
x, c))
ValueError: cannot compute leadterm(-log(a) - _w/a + log(-a/_w), _w), got
c=-log(_w)

/c

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to