Comment #19 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

I don't know what you mean by "a piecewise". I don't think that it's a well-defined mathematical object and, since "piecewise" is an adverb, "a piecewise" doesn't even seem grammatically correct.

OTOH, until now, the behaviour of Piecewise has been clearly defined as evaluating the conditions in sequence.

But I guess that the problem is that Piecewise is actually a complicated way of modelling conditional expressions, while it claims to represent piecewise-defined functions. So I think that we need a simple implementation of conditional expressions (IfElse), and a representation of piecewise-defined functions over the reals. The latter would have an implementation very different from Piecewise, because it would be a function instead of an expression and because it would probably rely on explicit intervals forming a disjoint cover of the real line, which would allow efficient evaluation by bisecting on the breakpoints.

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