Comment #2 on issue 3070 by [email protected]: cse raises error with RootOf
http://code.google.com/p/sympy/issues/detail?id=3070

This might be the same thing:

z
-sqrt(2*sqrt(5) + 10)/4 - sqrt(5)*sqrt(2*sqrt(5) + 10
)/20 + sqrt(5)*sqrt(2*sqrt(5) + 5)/5
solve(z.subs(sqrt(5),x)-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\solvers\solvers.py", line 826, in solve
    solution = _solve(f[0], *symbols, **flags)
  File "sympy\solvers\solvers.py", line 1336, in _solve
    result = map(simplify, result)
  File "sympy\simplify\simplify.py", line 3418, in simplify
    expr = signsimp(expr)
  File "sympy\simplify\simplify.py", line 3274, in signsimp
    e = sub_post(sub_pre(expr))
  File "sympy\simplify\cse_opts.py", line 31, in sub_pre
    e = e.xreplace(negs)
  File "sympy\core\basic.py", line 1052, in xreplace
    return self.func(*args)
  File "sympy\polys\rootoftools.py", line 67, in __new__
    (-degree, degree - 1, index))
IndexError: root index out of [-1, 0] range, got 1


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to