For an expression evalf converts integers to floats.

    z = symbols('z')
    expr = 2*z
    expr.evalf()

This yields 2.0*z. Assuming that the coefficients in the expression are 
actually integers, is there a way to convert them from floats to integers 
in SymPy while leaving everything else as is?

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/32b7b494-c84c-4699-81e6-7e23b18b07b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to