Skip to content

Better handling of the else branch

Dominic Kempf requested to merge fixup-if-else into master

I realized sympy.Piecewise iterates over the conditions and returns the first which evaluates to True. So, the else branch should have True instead of sp.Not(cond) for a more robust implementation.

Merge request reports