[Newbie] expansion of a function as a power series
Subject: [Newbie] expansion of a function as a power series
From: Rupert Swarbrick
Date: Wed, 25 Jul 2007 17:42:19 +0100
On Wed, 25 Jul 2007 18:16:54 +0200 (CEST)
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
>
So you get the taylor series with something like:
f(x) := x/(1-x-x^2);
T: taylor( f(x), x, 0, 5 );
Then
part(T,3);
will give you 2x^3, for example.
Finally you could do something like
%, x=1
There may be sexier ways that don't require you to compute the whole
taylor series up to the power you want?
Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20070725/6503691a/attachment.pgp