Issue 3500 in sympy: limit of fraction with oscillating term in the numerator calculated incorrectly

1 view
Skip to first unread message

sy...@googlecode.com

unread,
Nov 11, 2012, 3:42:33 PM11/11/12
to sympy-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3500 by ilya.sch...@gmail.com: limit of fraction with oscillating
term in the numerator calculated incorrectly
http://code.google.com/p/sympy/issues/detail?id=3500

In [2]: limit((n+cos(n))/n,n,oo)
Out[2]: nan

Should be 1, due to cos(n) is limited.

It seems that there are problems with calculating limits of oscillating
functions, e.g.

In [3]: limit(cos(n),n,oo)
Out[3]: cos(∞)

Which should return nan instead or show that there is no limit in other way.

sy...@googlecode.com

unread,
Nov 11, 2012, 5:51:58 PM11/11/12
to sympy-...@googlegroups.com
Updates:
Status: Valid
Labels: Series

Comment #1 on issue 3500 by asme...@gmail.com: limit of fraction with
oscillating term in the numerator calculated incorrectly
http://code.google.com/p/sympy/issues/detail?id=3500

Current master gives PoleError for the first one. cos(oo) is intensional.
It gives a bit more information than nan would (namely, that the limit
points are between -1 and 1). I agree that it seems a bit nonsensical, but
other CASs use this same notation.

Reply all
Reply to author
Forward
0 new messages