Status: Accepted
Owner: smi...@gmail.com
Labels: Type-Defect Priority-Medium

New issue 2210 by smi...@gmail.com: Sum does not set commutativity
http://code.google.com/p/sympy/issues/detail?id=2210

Should a general Expr method, is_commutative be defined, or, like was done for Integral, should this flag be set internally? Perhaps the Expr version would be

    def is_commutative(self):
      rv = getattr(self, 'is_commutative')
      if rv is None:
        return all(s.is_commutative for s in self.free_symbols)
      return rv

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

Reply via email to