Ideally series would produce something more like a Poly object rather
than just an Add with an O() term. You can use Poly to get the
coefficients in order:
In [6]: sin(x).series(x,0,10).removeO().as_poly(x).coeffs()[::-1]
Out[6]: [1, -1/6, 1/120, -1/5040, 1/362880]
In [7]: sin(x).series(x,0,10).removeO().as_poly(x).all_coeffs()[::-1]
Out[7]: [0, 1, 0, -1/6, 0, 1/120, 0, -1/5040, 0, 1/362880]
--
Oscar
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sympy+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/2e33ae1e-9c71-4e58-9887-ea5dffe08e3an%40googlegroups.com.