Comment #6 on issue 2107 by smichr: Real(0.1, 10) - Real(0.1, 10) ->
3.637923296e-13
http://code.google.com/p/sympy/issues/detail?id=2107
FWIW, if you cause self and -other to be normalized to the same value (0)
before adding, they add ok:
def __sub__(self, other):
return Add(self, 0) + Add(-other, 0)
h[3] >>> for i in range(1, 15, 3):
... print Real(.1, i) - Real(.1, i)
...
0
0
0
0
0
--
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.