Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Critical Printing Milestone-Release0.7.0

New issue 2425 by asmeurer: Pretty printing bug
http://code.google.com/p/sympy/issues/detail?id=2425

Ever since the commit

commit b8d6252ea115032f7da8c46aca60af0b6a75fd36
Author: Ronan Lamy <ronan.l...@normalesup.org>
Date:   Thu Jan 13 23:43:00 2011 +0000

    Set keep_sign = True

We get

In [3]: -(-x + 5)*(-x - 2*2**(1/S(2)) + 5) - (-y + 5)*(-y + 5)
Out[3]:
            ⎛            ⎽⎽⎽⎞          2
- -(-5 + x)⋅⎝5 - x - 2⋅╲╱ 2 ⎠ - (5 - y)

In [4]: print -(-x + 5)*(-x - 2*2**(1/S(2)) + 5) - (-y + 5)*(-y + 5)
-(5 - x)*(5 - x - 2*2**(1/2)) - (5 - y)**2

Notice the double minus sign in front of the pretty printed expression.


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