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

New issue 3070 by smi...@gmail.com: cse raises error with RootOf
http://code.google.com/p/sympy/issues/detail?id=3070

cse(RootOf(x**6-4*x**5-2,1))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\simplify\cse_main.py", line 121, in cse
    reduced_exprs = [preprocess_for_cse(e, optimizations) for e in exprs]
  File "sympy\simplify\cse_main.py", line 43, in preprocess_for_cse
    expr = pre(expr)
  File "sympy\simplify\cse_opts.py", line 25, in sub_pre
    e = e.xreplace(reps)
  File "sympy\core\basic.py", line 897, in xreplace
    return self.func(*args)
  File "sympy\polys\rootoftools.py", line 112, in __new__
raise IndexError("root index out of [%d, %d] range, got %d" % (-degree, degree-1, index))
IndexError: root index out of [-1, 0] range, got 1

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