taylor(x,x,0,1)^2 =/= taylor(x^2,x,0,1);



I discovered that:

  (%i1) p : taylor(x,x,0,1);
  (%o1) x+...

  (%i2) p * p;
  (%o2) x^2+...

  (%i3) taylor(%);
  (%o3) x^2+...

But

  (%i4) q : taylor(x,[x],0,1);
  (%o4) x+...

  (%i5) q * q;
  (%o5) x^2+...

  (%i6) taylor(%);
  (%o6) 0+...

Barton

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

>To: maxima at math.utexas.edu
>From: Barton Willis <willisb at unk.edu>
>Sent by: maxima-bounces at math.utexas.edu
>Date: 01/10/2008 06:50PM
>Subject: taylor(x,x,0,1)^2  =/=  taylor(x^2,x,0,1);
>
>Is there an easy way to get Maxima to do taylor(x,x,0,1)^2 --> 0 + ...
>instead of x^2 + ...? I could send taylor(x,x,0,1)^2 back
>through taylor, but that seems inefficient.
>
>(%i5) [taylor(x,x,0,1)^2, taylor(x^2,x,0,1)];
>(%o5) [x^2+...,0+...]
>
>Barton
>_______________________________________________
>Maxima mailing list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima