Quantcast
Channel: MaplePrimes - Questions and Posts tagged with animate
Viewing all articles
Browse latest Browse all 24

Problem with animating a numeric dsolve

$
0
0

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

restart;

with(plots):

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: mw.mw

 


Viewing all articles
Browse latest Browse all 24

Trending Articles