pearu / sympycore

Automatically exported from code.google.com/p/sympycore
Other
11 stars 1 forks source link

ADD_VALUE_TERMS should do CANONIZE_TERMS_DICT #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems that ADD_VALUE_TERMS in src/mk_pairs_ops.py needs CANONIZE just
before new instance is returned. 

>>> from sympycore import *
>>> a = Symbol("a")
>>> a + 1 - 1 == a
False
>>> print (a + 1 - 1).as_tree()
Calculus:
ADD[
  1:SYMBOL[a]
]

Original issue reported on code.google.com by tmi...@gmail.com on 21 Apr 2008 at 8:00

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.
The issue is fixed in r1018.

Original comment by pearu.peterson on 21 Apr 2008 at 8:45