Andy Ray Terrel wrote: > Yeah piecewise functions are still only about 50% implemented. I > wanted to make a piecewise_fold function that could be called to fold > any outer arguments into the piecewise exprs, but got stuck a while > back on the assumption system. Perhaps I should get that working > again. > > http://github.com/aterrel/sympy/commits/piecewise > > and issue 353
Fold is the way to go. It's the most elegant idea so far and it seems to be required by several other parts of sympy to handle piecewise functions properly. Issue 353 is blocked on 1047, so we can give it a little rest for now. > As far as the intermediate rep for other languages, I think just using > the arg tree already given by the symbols is best. I've created an > issue for the LowLevelCodePrinter (issue 1514) thx --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en -~----------~----~----~----~------~----~------~--~---
