Open asmeurer opened 8 years ago
In [2]: ;var k
Out[2]: k
In [3]: limit(1.0**k, k, oo)
Out[3]: oo
Wrong, should be 1.
In sympy.series.gruntz.py
, function mrv(1.0**k, k)
goes into infinite loop because of roundoff errors: log(1.0) ==> 2.36364252615315e-125
.
Suggest to replace floating point numbers with rationals during the limit calculation.
https://github.com/sympy/sympy/pull/11681
The problem is not just 1.0**k
for k ===> oo
.
I remember discussing this before. This expression is tricky because any deviation in the base changes the value of the limit.
This is from https://stackoverflow.com/questions/39736887/use-python-to-calculate-pn-while-n-approach-oo-and-p-is-a-matrix
I think the problem is the
1.0**k
terms, which confuse limit.