Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Printing

New issue 3354 by asmeu...@gmail.com: Minus sign in front of Piecewise is not centered
http://code.google.com/p/sympy/issues/detail?id=3354

In [83]: -Piecewise((0, Abs(1/y) < 1), (1, Abs(y) < 1), (y*meijerg(((2, 1), ()), ((), (1, 0)), 1/y), True))
Out[83]:
 ⎧                                │1│
-⎪            0               for │─│ < 1
 ⎪                                │y│
 ⎪
 ⎨            1               for │y│ < 1
 ⎪
 ⎪  ╭─╮0, 2 ⎛2, 1       │ 1⎞
 ⎪y⋅│╶┐     ⎜           │ ─⎟   otherwise
 ⎩  ╰─╯2, 2 ⎝      1, 0 │ y⎠

In [84]: pprint(-Piecewise((0, Abs(1/y) < 1), (1, Abs(y) < 1), (y*meijerg(((2, 1), ()), ((), (1, 0)), 1/y), True)), use_unicode=False)
 /                                |1|
-|            0               for |-| < 1
 |                                |y|
 |
 <            1               for |y| < 1
 |
 |   __0, 2 /2, 1       | 1\
 |y*/__     |           | -|   otherwise
 \  \_|2, 2 \      1, 0 | y/

The minus sign seems to be centered on the first expression, not the whole thing.

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