Evaluating Taylor polynomials



-----maxima-bounces at math.utexas.edu wrote: -----

> specified before, you can use an alternative method:
> define(ft(x,y),taylor(f(x,y),[x,y],[0,0],2]));
> Then you can evaluate the value of the function ft(x,y):
> ft(-1,1);

By the way, your 'define' method works for atomic arguments
to ft, but it fails for numerical values:

 (%i11) define(ft(x,y), taylor(f(x,y),[x,y],[0,0],2))$
 (%i12) ft(-1,1);
  Attempt to differentiate with respect to a number: -1

The only way I know to fix this is to use the 'at' function.

Barton