Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium
New issue 2000 by asmeurer: Inconsistencies with limit()
http://code.google.com/p/sympy/issues/detail?id=2000
In [20]: x.limit(x, 1, dir='-')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in
<module>()
TypeError: limit() got an unexpected keyword argument 'dir'
In [21]: x.limit(x, 1, direction='-')
Out[21]: 1
In [22]: limit(x, x, 1, dir='-')
Out[22]: 1
In [23]: limit(x, x, 1, direction='-')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in
<module>()
TypeError: limit() got an unexpected keyword argument 'direction'
We need to either use dir or direction everywhere. Note that series uses
dir.
Also, as long as we are talking abode limit, I noticed that Limit could
pretty print the direction, i.e.,
In [24]: Limit(x, x, 1, dir='-')
Out[24]:
lim x
x->1
Should be
In [24]: Limit(x, x, 1, dir='-')
Out[24]:
lim x
-
x->1
And assumedly it is possible to create a better looking arrow using unicode
(?)
(BTW, issue 2000!)
--
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.