Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2107 by ruoyu0088: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13
http://code.google.com/p/sympy/issues/detail?id=2107

Version: 0.6.7

Real(0.1, N) - Real(0.1, N) return no zero when N<=14:

In [77]: Real(0.1, 1) - Real(0.1, 1)
Out[77]: -0.0004

In [78]: Real(0.1, 1) == Real(0.1, 1)
Out[78]: True

In [79]: Real(0.1) - Real(0.1)
Out[79]: 0

In [82]: Real(0.1,15) - Real(0.1,15)
Out[82]: 0

In [83]: Real(0.1,14) - Real(0.1,14)
Out[83]: -2.7755575615629e-17

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

Reply via email to