Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Polynomial
New issue 3223 by [email protected]: degree((x+1)**10000) takes too long
http://code.google.com/p/sympy/issues/detail?id=3223
degree() should be able to return almost instantly, but something like
degree((x+1)**10000) takes forever to run, because it expands the
polynomial first. The function should be rewritten to compute the degree
recursively, without unnecessary expansion (similar to ode_order).
Other polys functions, like LC, could do the same. Actually, making LC
work this way would be nice for getting degree() to work, because then you
could avoid expansion even on an Add (otherwise, you have to, in case of
cancelation).
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.