Comment #5 on issue 2467 by [email protected]: Better way to test if evalf() returns a Number
http://code.google.com/p/sympy/issues/detail?id=2467

testing is easier than I mentioned above: `x.is_Number or pure_complex(x)`:


from sympy.core.evalf import pure_complex
pure_complex(a)
pure_complex(b)
(3, 1)
a
3
b
3 + I
a.is_Number, b.is_Number
(True, False)
pure_complex(a), pure_complex(b)
(None, (3, 1))


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

Reply via email to