Comment #4 on issue 3852 by asmeu...@gmail.com: Multiple integrals with piecewise should be smarter
http://code.google.com/p/sympy/issues/detail?id=3852

I'm unsure about reducing that piecewise, especially if we adopt the programming type convention that was preferred back in https://github.com/sympy/sympy/pull/1009 over the mathematical one. Piecewise((f(x), Eq(x, 0)), (g(x), True)) should stay as it is even if f(0) == g(0) because it might be more efficient to compute.

Also, does it even make sense to have a condition (f(x), Eq(x, 0)), instead of just f(0) (I'm referring to what integrate() returns, not what Piecewise should be simplifying to). I think I said something about the order of the Piecewise terms back in the pull request. I think it makes more sense to have Piecewise((sin(x*y), Ne(y, 0)), (x*y, True)) because this can be trivially simplified (by the integrate routines, and/or by Piecewise), to Piecewise((sin(x*y), Ne(y, 0)), (0, True)).

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to