Question: pade approximation plot

hi all;

my orginal function is :

f(x)=(29/2)*x^2-(899/24)*x^4+(26941/720)*x^6+...

i want plot pade approximation and orginal function in the maple 14, i wrote command as follows:

is my command  Correct?    

> with(numapprox);
> f := (29/2)*x^2-(899/24)*x^4+(26941/720)*x^6;
> e := pade(f, x, [5, 4]);
> with(plots);
> P := plot(f, x = 0 .. 1, style = point, color = "SteelBlue");
> G := plot(e, x = 0 .. 1, style = line);
> display(P, G); 

 image

 

Please Wait...