Using Taylor Polynomials Programmatically in Maple

Posted by kzh on Stack Overflow See other posts from Stack Overflow or by kzh
Published on 2009-12-01T20:54:27Z Indexed on 2010/05/11 23:34 UTC
Read the original article Hit count: 657

Filed under:
|
|

I am trying to use a Taylor polynomial programmatically in Maple, but the following does not seem to work...

T[6]:=taylor(sin(x),x=Pi/4,6);convert(T[6], polynom, x);
f:=proc(x)
  convert(T[6], polynom, x);
end proc;
f(1);

All of the following also do not work:

  • f:=convert(T[6], polynom);
  • f:=convert(T[6], polynom, x);
  • f:=x->convert(T[6], polynom);
  • f:=x->convert(T[6], polynom, x);.

Is there a way of doing this without copying and pasting the output of convert into the definition of f?

© Stack Overflow or respective owner

Related posts about calculus

Related posts about maple