Comment #2 on issue 3060 by [email protected]: use of evalf() needs review
http://code.google.com/p/sympy/issues/detail?id=3060
It appears that the first observation of evalf() being used to determine if
something is a Number is wrong. After evalf'ing, the result is used in the
return value.
The second issue, however, about evalf() being used without consideration
of precision needs attention, however:
>>> pi.n() < 1e-12 + pi
True
>>> pi.n() < 1e-17 + pi
False
That last result might be rationalized as "to the precision given, the two
are the same" but the equality test says otherwise:
>>> pi.n() == 1e-17 + pi
False
The lhs is also not greater than the right:
>>> pi.n() > 1e-17 + pi
False
All three tests should not be False.
--
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.