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.
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 ﬁxed a problem in it caused by the fact that Maple 7 will not accept a zero-length parametric curve, whereas Maple 6 would.)
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 deﬁned as ratios of the ﬁnal values in terms of '(i-1)/(nf-1)'.
This can be made more eﬃcient, but it is much less elegant.
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 diﬃcult to understand for a new user.
May-be animatecurve( .... ) is the function you need ? (after with(plots) )