Status: Valid Owner: ---- CC: [email protected] Labels: Type-Defect Priority-Medium
New issue 3602 by [email protected]: AssertionError while factoring noncommutative symbols.
http://code.google.com/p/sympy/issues/detail?id=3602 In [14]: x, y = symbols('x y', commutative=False) In [15]: k = Symbol('k', integer=True) In [16]: factor((x*y)**k + (x*y)**(k + 1)) --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) sympy/<ipython-input-16-44b6e8fb0e41> in <module>() ----> 1 factor((x*y)**k + (x*y)**(k + 1)) sympy/polys/polytools.pyc in factor(f, *gens, **args) 5420 if not f.is_commutative: 5421 from sympy.core.exprtools import factor_nc -> 5422 return factor_nc(f) 5423 else: 5424 raise PolynomialError(msg) sympy/core/exprtools.pyc in factor_nc(expr) 873 else: 874 b, e = f.as_base_exp() --> 875 assert e.is_Integer 876 ncfac.extend([b]*e) 877 pre_mid = g*Mul(*cfac)*l AssertionError: -- 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.
