[Newbie] expansion of a function as a power series



use coeff() function:


(%i1) f(x) := x/(1-x-x^2);
                                                x
(%o1)                         f(x) := ----------
                                                      2
                                            1 - x - x
(%i2) T: taylor( f(x), x, 0, 5 );
                                  2        3        4        5
(%o2)/T/              x + x  + 2 x  + 3 x  + 5 x  + . . .
(%i3) coeff(T,x,3);
(%o3)/R/                               2

ted woollett
------------------

Hugo Coolens <coolens at kahosl.be> wrote:

> Can anyone tell me how to "harvest" the coefficient of x^n in the 
> expansion of the function x/(1-x-x?^2) as a ower series around the
> origin?
> 
> regards,
> hugo
>