Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2101 by Maurice.Bremond: latex printing with piecewise function : reversed expr and cond
http://code.google.com/p/sympy/issues/detail?id=2101

x=Symbol('x')
p = Piecewise((x,x<0),(0,x>=0))
latex(p)

'\\begin{cases} x & \\text{for}\\: x < 0 \\\\0 \\leq x & \\text{for}\\: 0 \\end{cases}'

second expr and cond are reversed.

with the attached patch to sympy/printing/latex.py :

'\\begin{cases} x & \\text{for}\\: x < 0 \\\\0 & \\text{for}\\: 0 \\leq x \\end{cases}'

Attachments:
        ec.patch  685 bytes

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