Comment #1 on issue 1709 by smichr: separatevars fails if given an  
expression with noncommutative symbols
http://code.google.com/p/sympy/issues/detail?id=1709

>>> from sympy import *
>>> n=Symbol('n', commutative=False)
>>> x=Symbol('x')
>>> separatevars(x+x*n)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "sympy\simplify\simplify.py", line 721, in separatevars
     return _separatevars(expr)
   File "sympy\simplify\simplify.py", line 727, in _separatevars
     expr = factor(expr)
   File "sympy\polys\factortools.py", line 80, in factor
     coeff, factors = poly_factors(f, *symbols, **flags)
   File "sympy\polys\factortools.py", line 20, in poly_factors
     f = Poly(f, *symbols)
   File "sympy\polys\polynomial.py", line 363, in __new__
     raise SymbolsError("Non-commutative symbols: %s" % (symbols,))
sympy.polys.polynomial.SymbolsError: Non-commutative symbols: (n, x)

--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to