Can anybody help me with the following animation:
f:%e^(-x)*sin(x)$
movie(n):=
block([],
for k:1 thru n step 1 do
(plot2d([f,taylor(f,x,0,k)],
[x,-1,5],[y,-1,2],
[style, [lines,5,1],[lines,2,2]],
[gnuplot_preamble, concat("set xrange [-1:5];
set yrange [-1:2];
set terminal png;\
set out 'temp/file",k,".png'")])))$
movie(11);
system("animate -delay 120 temp/file?.png temp/file??.png");
Some of the graphs are not complete, typically file1.png has the
function f plotted but not the taylor approximation. If I run it again
file1.png may now be missing both the function f and the taylor
approximation. Other file are sometimes just fine, everything is there.
Which are completely successful and which are not is not consistent from
one run to the next even if I close the maxima session between runs.
I also get a number of error messages:
gnuplot\<gtr\> plot [-1.:5.] [-1.:2.]'/home/bob/maxout.gnuplot_pipes'
index 0 title "%e^-x*sin(x)" with lines lw 5.0 lt 3,
'/home/bob/maxout.gnuplot_pipes' index 1 \ title "x-x^2+x^3/3" with
lines lw 2.0 lt 1
^
line 0: warning: Skipping data file with no valid points
This is on a debian unstable system AMD64, inside texmacs 1:1.0.6.14-1
using maxima 5.16.2.1. Any ideas?
Bob
--
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.