Comment #1 on issue 2902 by [email protected]: is_commutative weirdness
http://code.google.com/p/sympy/issues/detail?id=2902
It used to work in 0.7.1. I bisected it to
commit 3e835b50a25eac5f88e5d0d782fcb687d277d402
Author: Chris Smith <[email protected]>
Date: Tue Nov 15 17:42:55 2011 +0545
optimize slot 0 operations
Adding or multiplying a Rational onto an Add or Mul should be
very quick. Even though there are core-rewriting work that has
been discussed, having at least the operations with Rationals
be less penalized is an advantage. With these mods, adding a
Rational
to an Add or Mul is almost instantaneous for expressions with
30,000 terms/factors; Multiplying a Mul by a Rational is also
fast, but multiplying an Add by a Rational is a bit slower because
of the 2-arg Mul behavior whereby Rationals are distributed on the
terms.
--
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.