If you know they are real just substitute them away:

>>> 3+I*2
3 + 2*I
>>> _.subs(I,0)
3

Did you already try the chop option to evalf?

>>> 3+1e-29*I
3 + 1.0e-29*I
>>> _.evalf(chop=True)
3.00000000000000

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to