A Numerical Illustration

Start with some function of t :

[Maple Math]

[Maple Math]

[Maple Math]

It looks like this:

[Maple Math]

[Maple Plot]

To fourth order in t, we have, analytically,

[Maple Math]

[Maple Math]

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

We'll actually use 20th order for numerical calculations.

[Maple Math]

Create a function that numerically evaluates the Taylor series representation.

[Maple Math]

For example,

[Maple Math]

[Maple Math]

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

Compare the Taylor series with the original function:

[Maple Math]
[Maple Math]

[Maple Plot]

The Taylor series is good to about [Maple Math] .

Check the conversion routines:

[Maple Math]

[Maple Math]

[Maple Math]

Take a look at the first few terms of the Legendre polynomial representation:

[Maple Math]
[Maple Math]

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

Convert the Taylor series to different representations, for example Legendre and Chebyshev:

[Maple Math]

[Maple Math]

Numerically,

[Maple Math]

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

[Maple Math]

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

[Maple Math]

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]