Just after sending I see there is the removeO method, so the above can
be done as

>>> (x/sin(x)).series(x, 0, 8)
1 + x**2/6 + 7*x**4/360 + 31*x**6/15120 + O(x**7)
>>> Poly(_.removeO()).all_coeffs()
[31/15120, 0, 7/360, 0, 1/6, 0, 1]

and sorting as necessary.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to