Hello,
consider this trivial example:
x = symbols("x")
expr = S(10) / 3 * exp(S(5) / 2) * x**(S(5) / 2)
I would like to convert all rational numbers to float. I though it would be easy, for example:
expr.replace(lambda e: e.is_Rational, lambda e: e.evalf())
However, Rational numbers in the exponents are not converted. Why?
Thanks in advance!