You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: e = log(exp(1/x)/Float(2) + exp(-1/x)/2)*x**2
In [2]: e.limit(x, oo) # Float(0.5) would be better
Out[2]: ∞
In [3]: e = log(exp(1/x)/2 + exp(-1/x)/2)*x**2
In [4]: e.limit(x, oo)
Out[4]: 1/2
Limit algorithms (i.e. Gruntz) doesn't work well with
non-exact numbers.
TODO: Perhaps, it's a user task to convert them to
Rationals/whatever and it's better to raise an exception
instead of this conversion.
Fixesdiofant#296Fixessympy/sympy#11270
Few outdated comments in test_compute_leading_term are removed.
This also closessympy/sympy#5383 (regression test added).
An example is sympy/sympy#11270. More simple test:
In some sense
Out[2]
is not wrong:The text was updated successfully, but these errors were encountered: