Comment #1 on issue 3862 by [email protected]: rcollect doesn't work as
expected
http://code.google.com/p/sympy/issues/detail?id=3862
...or more succinctly,
n,d=[horner(i) for i in fraction(eq)]; pprint(n/d)
a0*(a1*(a2*(a3*a4 + 1) + a4) + a3*a4 + 1) + a2*(a3*a4 + 1) + a4
---------------------------------------------------------------
a1*(a2*(a3*a4 + 1) + a4) + a3*a4 + 1
I suspect that rcollect could work better, however. Perhaps by running
collect on subexpressions that are Adds rather than on the entire Add
itself.
--
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.