Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3101 by smi...@gmail.com: assertion error in Mul.flatten
http://code.google.com/p/sympy/issues/detail?id=3101

print ((-2*I)**Rational(5,3))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\core\decorators.py", line 65, in __sympifyit_wrapper
    return func(a, sympify(b, strict=True))
  File "sympy\core\decorators.py", line 105, in binary_op_wrapper
    return func(self, other)
  File "sympy\core\expr.py", line 129, in __pow__
    return Pow(self, other)
  File "sympy\core\cache.py", line 90, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy\core\power.py", line 84, in __new__
    obj = b._eval_power(e)
  File "sympy\core\mul.py", line 556, in _eval_power
    return Mul(*[Pow(s, e) for s in nonneg + neg + [coeff]])* \
  File "sympy\core\cache.py", line 90, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy\core\operations.py", line 40, in __new__
    c_part, nc_part, order_symbols = cls.flatten(args)
  File "sympy\core\mul.py", line 439, in flatten
    assert p.is_Pow and p.base is S.NegativeOne
AssertionError


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