Updates:
Status: WontFix
Comment #4 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
Since this was about testing whether a number was returned and is_number
does that (and evalf should return a number like (3+sqrt(2)) after
evaluation -- a number, but not an evaluated number) I am closing this.
To test for a fully evaluated number, real or complex, I guess one could
use: n.is_Number or n.is_Add and len(n.args) == 2 and all(i.is_Number for i
in n.as_real_imag()). If that's an issue, perhaps a new issue can be opened.
--
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.