Sorry, I've been told.
Is it easy to correct that bug?
Is there any other function that raises exceptions when you try to evaluate
it where it is not defined?



2013/3/5 Julien Rioux <notifications@github.com>

> In sympy/functions/elementary/tests/test_piecewise.py:
>
> > @@ -301,6 +301,12 @@ def test_piecewise_fold():
> >          piecewise_fold(p), (x, -oo, oo)) == integrate(2*x + 2, (x, 0, 1))
> >
> >
> > +def test_piecewise_cond():
> > +    p = Piecewise((0, Piecewise((cos(x) < 0, x < 1),
> > +        (1/x > 0, x >= 1))), (1, True))
>
> The ZeroDivisionError is a bug (I think this has been mentioned before,
> but I don't see an issue for it). If you substitute 0 instead of 0.0 it
> works fine.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sympy/sympy/pull/1868/files#r3242329>
> .
>