| 1 | initial version |
For the record (i. e. future users erusing past answers) : as guessed by @Frederic C, the problem is that Sage's definition of limit by Sympi's :
sage: limit(1/x, x=0)
Infinity
sage: import sympy
sage: limit(1/x, x=0)
Infinity
sage: from sympy import limit
sage: limit(1/x, x=0)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-15-ba76f96e233b> in <module>
----> 1 limit(Integer(1)/x, x=Integer(0))
TypeError: limit() got an unexpected keyword argument 'x'
sage: reset("limit")
sage: limit(1/x, x=0)
Infinity
So don't import limit from sympy if you want to keep Sage's definition.
And don't from sympy import *, which is a swell way to royally bugger a Sage session... and is deprecated (= no longer recommended and advised against) by Sympy's authors even in a pure Python session.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.