Comment #1 on issue 1214 by andy.terrel: integrate cannot integrate more complex Piecewise functions http://code.google.com/p/sympy/issues/detail?id=1214
Nice example it also shows some things I could do to help with printing. Yup, I was working on this when I stalled because I thought the assumption system was going to be changed pretty soon. My plan was to have: 1) piecewise_fold that take an expr with a piecewise components and turns it into a piecewise function. This works well for taking things that have similar conditions and pasting them together but not so good for nesting things. I have this mostly implemented and can try to swing back to it in the next week. 2) piecewise_expand this will implement the mathematica version ( http://reference.wolfram.com/mathematica/ref/PiecewiseExpand.html ) and hopefully solve the problems, I found myself basically making an assumption system to carry through the different condition arguments. Which is why I paused the work on this front. Eventually you should be able to do piecewise_expand on any expr and get the "simplest" version of the piecewise function as a piecewise function rather than a add multiply and what not. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
