I am trying to make a relatively simple limit using sympy:
from sympy import *
f,k,b = symbols('f k b')
test = f**b - k**b
limit(test,k,f)
I expect 0, but get:
>>> limit(test,k,f)
f**b - exp(b*log(f))
Mathematically, this is correct (and zero), but why doesn't it evaluate zero?
Please note if I define:
from sympy import *
f,k,b = symbols('f k b')
test = exp(b*log(f)) - exp(b*log(k))
limit(test,k,f)
then i get zero.
pyguy source
share