- labels: --> Lisp Core - Taylor
Derivatives of Taylor polynomials sometimes
are not simplified; an example
(%i1) taylor(x/(1+x),x,inf,4);
(%o1) 1-1/x+1/x^2-1/x^3+1/x^4
(%i2) diff(%,x);
(%o2) 1/x^2-2/(x^2*x)+3/(x^2*x^2)-4/(x^2*x^3)
Notice the x^2 * x, x^2 * x^2, ... terms. Sometimes
derivatives of Taylor polynomials work fine
(%i3) taylor(x/(1+x),x,1,4);
(%o3) 1/2+(x-1)/4-(x-1)^2/8+(x-1)^3/16-(x-1)^4/32
(%i4) diff(%,x);
(%o4) 1/4-(x-1)/4+3*(x-1)^2/16-(x-1)^3/8
%i5) build_info();
Maxima version: 5.9.0.1cvs
Maxima build date: 12:16 5/28/2004
host type: i686-pc-mingw32
lisp-implementation-type: Kyoto Common Lisp
lisp-implementation-version: GCL 2.7.0
Barton