Comment #6 on issue 3025 by [email protected]: Piecewise evaluate=False does not work when conditions are boolean
http://code.google.com/p/sympy/issues/detail?id=3025

Sean & Aaron: None of the examples you mention have explicitly True or False conditions, so they don't address my point, which is that there are no circumstances where 'Piecewise((x, True), (y, False), (z, True))' is preferable to 'x'.

Also, I don't understand the initial comment, given that 'evaluate=False' is actually obeyed, causing rather nonsensical results:

In [17]: Piecewise((x, x>1), (0, True), (1, False), (2, True), evaluate=False)
Out[17]:
⎧x  for x > 1
⎪
⎪0  otherwise
⎨
⎪1  for False
⎪
⎩2  otherwise


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to