Comment #18 on issue 1587 by mattpap: Polynomials docs
http://code.google.com/p/sympy/issues/detail?id=1587

You've been doing a lot of work with the printers lately, so maybe you know
how to fix it.

My hash-less key-function for sorting would do the job, but I'm not sure if this will be usable before the release, because I won't have much time for SymPy this week.

I've never even heard of this Basic.keep_sign

$ isympy
IPython console for SymPy 0.6.7-git (Python 2.6.6) (ground types: gmpy, cache: off)

In [1]: (x - 1)*(x + 1)
Out[1]: -(1 + x)⋅(1 - x)

$ isympy
IPython console for SymPy 0.6.7-git (Python 2.6.6) (ground types: gmpy, cache: off)

In [1]: Basic.keep_sign = True

In [2]: (x - 1)*(x + 1)
Out[2]: (1 + x)⋅(-1 + x)

If cache was enabled and you set Basic.keep_sign = True and you performed some computations and want to set Basic.keep_sing = False (the default), then SymPy won't recompute any of the cached expressions, so you will still be getting results as keep_sign was set to True, although it's set to False. So, I you want to change keep_sign value once again, you have to clear cache to make this do what you intended (assuming cache wasn't disabled from the beginning).

I use keep_sign in wester, because I can't stand this particularly annoying SymPy's behaviour. We should make keep_sign = True the default in the next release (I mean 0.7.1).

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