[sympy] Piecewise improvements (#1421)

2012-07-15 Thread Julien Rioux
This brings a few improvements to Piecewise: Implement methods such as _eval_conjugate, _eval_power, etc. to allow for simplifications. Implement the is_real, etc. assumption methods. Fix the canonalization of Piecewise with multiple otherwise conditions. Don't allow a Set() inside a condition,

Re: [sympy] Piecewise improvements (#1421)

2012-08-08 Thread Julien Rioux
> -def is_commutative(self): > -return all(expr.is_commutative for expr, _ in self.args) > +def _eval_as_leading_term(self, x): > +for e, c in self.args: > +if c is True or c.subs(x, 0) is True: > +return e.as_leading_term(x) > + > +def _eval_

Re: [sympy] Piecewise improvements (#1421)

2012-08-08 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2064894) (merged 4a65f8d3 into 0d88b25d). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1421#issuecomment-7578356 -- You received this message because you are subscribed to the Google

Re: [sympy] Piecewise improvements (#1421)

2012-08-08 Thread Stefan Krastanov
**SymPy Bot Summary:** :eight_spoked_asterisk: All tests have passed. *Test command:* setup.py test *master hash*: 0d88b25d001e4bf91d5ec36fddd06eb6cba77348 *branch hash*: 4a65f8d3bad78487ffc673866a7ed00d075fdbc6 **Interpreter 1:** :eight_spoked_asterisk: All tests have passed. *Interpreter:* /u