Comment #11 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
Ronan, what I understand as the rationalization of that behavior is if a boolean condition is encountered, it is because there was an evaluation step, such as .subs(), causing one of the conditions to be either True or False, and so the Piecewise expression is expected to be evaluated, where evaluation is returning one of the expressions. Namely, the first expression with a condition of True, even if that means skipping expressions with unevaluated conditions. Because of this, if you want to use a Piecewise in an algorithm, if some conditions may be booleans, but you want to delay evaluation, you would need something like evaluate=False to do this (meijerint is an example of this).
-- 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.
