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

In the preprocessing in cse, the expr, e, of a RootOf is identified as having an extractable sign. This ends up calling PurePoly(Neg(e)) -> PurePoly(Neg(e), Neg(e)) in RootOf.__new__. When a check is made on the order of the PurePoly it comes back as 1 (since it is "linear" in the generator). But perhaps index for the RootOf instance was 2 so then it thinks there is an error -- the order of the Neg expression (1) is less than the requested index (2) so an error is raised. Perhaps one way around this is not not wrap expressions in Neg but to add Neg to a given expresion?

--
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 sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
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