Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium

New issue 1993 by smichr: make sign simlification part of canonicalizing process
http://code.google.com/p/sympy/issues/detail?id=1993

One thing we can always be sure of with sympy expressions is that args[0] of an Add or Mul will contain a Number if it is present. Another standardization that would perhaps be good is to give expressions with the fewest negative signs when possible. e.g. in a test from my t branch commit 1984 I have this test:

assert ((x - y - v - w)*(x - y - v - 2*w)*(x - y - v - 4*w))**3 == \
       -(w + y + v - x)**3*(y + v - x + 2*w)**3*(y + v - x + 4*w)**3

Although this may not help doctest pass (since ordering of like-signed terms might be different?) it would help with comparing expressions. In commit 1825 of my t branch at github I introduced a signsimp function that might help in this regard.

--
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