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!

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/6df11339-8e3a-4e12-bbde-ec893a2187cdn%40googlegroups.com.

Reply via email to