Comment #2 on issue 1973 by asmeurer: hash(Integer) should return the int
http://code.google.com/p/sympy/issues/detail?id=1973
Previously, in both 64-bit and 32-bit:
sin(x - 2)
sin(-2 + x)
sin(2 - x)
-sin(-2 + x)
After the change, in 32-bit:
sin(x - 2)
sin(-2 + x)
sin(2 - x)
-sin(-2 + x)
and 64-bit:
sin(x - 2)
-sin(2 - x)
sin(2 - x)
sin(2 - x)
This should be fixed to behave hash independently. It's based
on .could_extract_minus_sign().
More difficult to understand is this failure:
In [2]: ((1/x+1)**3).nseries(x,0,3)
Out[2]:
3 1 3
1 + ─ + ── + ──
x 3 2
x x
In [3]: 1+x**(-3)+3*x**(-2)+3/x
Out[3]:
3 1 3
1 + ─ + ── + ──
x 3 2
x x
In [4]: ((1/x+1)**3).nseries(x,0,3) == 1+x**(-3)+3*x**(-2)+3/x
Out[4]: 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.