animation of drawing a function point-by-point (31.10.02)

Sandy Yates

I am not very experienced with Maple (v7). I am trying to ANIMATE drawing an (x, f(x) ) function where for each iteration I would like to draw more of the function, i.e, incrementing x for each step animation step.

For example, I would like to plot


so that each stage of the animation more points are included. I would hope that the plot gives the impression that data points are being acquired and plotted with time. This is for some illustrations I have in mind.

Robert Israel (1.11.02)


Dr Francis J. Wright (1.11.02)

I discuss this type of animation in my book ”Computing with Maple”; see http://centaur.maths.qmul.ac.uk/CwM/ for details.

I suggest you take a look at the cardioid animation under ”Graphics examples” on that web page. If that does essentially what you want, then you might like to download the solutions to the exercises for Chapter 3, which are available as a Maple 6 worksheet under ”Exercise solutions”.

(Of course, I would also encourage you to buy the book!)

This worksheet also runs in Maple 7. (In fact, I have just fixed a problem in it caused by the fact that Maple 7 will not accept a zero-length parametric curve, whereas Maple 6 would.)

Allan Wittkopf (1.11.02)

The following is quite short and will give you what you need:


In the above ’nf’ is the number of frames, and can be adjusted to suit - the 600 is the last time value, and the 400 is the number of points in the last frame - notice, they are defined as ratios of the final values in terms of '(i-1)/(nf-1)'.

This can be made more efficient, but it is much less elegant.

Carl Devore (2.11.02)


Of course, you can change the ranges and the number of frames to whatever you want.

Here is another solution. This one works much, much faster and gives a smoother animation, but it is more difficult to understand for a new user.


Koch-Beuttenmueller (4.11.02)

May-be animatecurve( .... ) is the function you need ? (after with(plots) )