On Thu, Sep 13, 2012 at 6:52 AM, nikolas <[email protected]> wrote: > Follow-up: I think I have found a way that works. > I guess if one is interested in expanding about 0, one can simply do >>>> f = x + 5 * x**3 >>>> coeffs = reversed(series(f, x, 0, n = 4).as_poly(x).all_coeffs()) >>>> list(coeffs) > [0, 1, 0, 5] > > So, to expand about x0!= 0, I can substitute x->x0 + x1 and expand in orders > of x1. > If this is a bad way to do it, please let me know!
I wrote about this in the docstring of Expr.series, I believe. Try "help(Expr.series)". -- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en.
