Comment #2 on issue 2558 by asmeurer: coeff() should allow x**0 (constant coefficients)
http://code.google.com/p/sympy/issues/detail?id=2558
Converting to a Poly is one of the ways Mateusz recommended in our tutorial. See http://mattpap.github.com/scipy-2011-tutorial/html/mathematics.html#partial-fraction-decomposition. But you can even see from the last task that Expr.coeff is not a viable replacement for Poly.nth().
Also, converting to a Poly can be an expensive operation, as it has to compute the domain, etc., which for this operation is useless.
And yes, clearly n should default to 1. -- 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.
