Comment #14 on issue 2607 by asmeurer: as_numer_denom() is too slow
http://code.google.com/p/sympy/issues/detail?id=2607

Another way would be to not distribute the denominator in each step, so compute

(a1*d2 + a2*d1)/(d1*d2)

((a1*d2 + a2*d1)*d3 + a3*d1*d2)/(d1*d2*d3)

(((a1*d2 + a2*d1)*d3 + a3*d1*d2)*d4 + a4*d1*d2*d3/(d1*d2*d3*d4)

This is super fast for the expression I gave above where the denominators are all just 1, but it's slow for actual expressions.

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