Question: Problem with animating a numeric dsolve

I don't understand why Maple does not like my code:



dsol := dsolve({diff(y(t),t) = -y(t), y(0)=1}, numeric):

frame := proc(s)
  odeplot(dsol, [t,y(t)], t=0..s);
end proc:

animate(frame, [t], t=0..3);

Error, (in plots/animate) invalid range

I know how to get around it (as shown in the attached worksheet) but I am curious to know why the above approach does not work.

Download worksheet:


Please Wait...