Comment #11 on issue 2104 by matt...@gmail.com: canonical ordering of terms
http://code.google.com/p/sympy/issues/detail?id=2104

I fixed this in a35aed24bd016b3fd0e4d51113373f6f33530542, so workarounds won't be necessary anymore, e.g.:

In [1]: latex(x**2 + 1, order='lex')
Out[1]: x^{2} + 1

In [2]: latex(x**2 + 1, order='rev-lex')
Out[2]: 1 + x^{2}

In [3]: expr = x**3 + x**2*y + 3*x*y**3 + y**4

In [4]: latex(expr, order='lex')
Out[4]: x^{3} + x^{2} y + 3 x y^{3} + y^{4}

In [5]: latex(expr, order='grlex')
Out[5]: 3 x y^{3} + y^{4} + x^{3} + x^{2} y

Also regarding #3, this also was fixed. Now it's hash independent (thus platform independent).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@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