Comment #21 on issue 2085 by pevzi23: Limit code severely broken.
http://code.google.com/p/sympy/issues/detail?id=2085
It seems that problem is there (cos):
def eval(cls, arg):
if arg.is_Number:
if arg is S.NaN:
return S.NaN
elif arg is S.Zero:
return S.One
There is no case if arg is S.Infinity. It was enough for me to add the
third case in cos and modify it in sin:
elif arg is S.Infinity:
return S.NaN
In [5]: limit(cos(x)/x, x, oo)
Out[5]: nan
In [6]: limit(sin(x)/x, x, oo)
Out[6]: nan
Correct me if I'm wrong again.
--
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.