This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ot command • t  name of the parameter on which the animation is made • a,b  real constants giving the range of the animation • L  list of real or complex constants The following is an example of an animation.
> with(plots): Warning, the name changecoords has been redefined > animate( plot, [sin(x*t), x=10..10], t=1..2 ); x x x x x x x x x x x x x x x x Playing an Animation To play an animation: 1. Select the plot by clicking it. The Maple worksheet Animation menu item is displayed. 2. From the Animation menu, select Play. 5.3 Animation • 129 Specifying Frames By default, a twodimensional animation consists of sixteen plots (frames). If the motion is not smooth, you can increase the number of frames. Note that computing many frames may require a lot of time and memory. The following command can be pasted into Maple to produce an animation with 50 frames.
> animate( plot, [sin(x*t), x=10..10,] t=1..2, frames=50); The usual plot options are also available. Enter the following example into Maple to view the animation.
> animate( plot, [sin(x*t), x=10..10], t=1..2, > frames=50, numpoints=100 ); You can plot any twodimensional animation as a threedimensional static plot. For example, try plotting the animation of sin(xt) above as a surface.
> plot3d( sin(x*t), x=10..10, t=1..2, grid=[50,100], > orientation=[135,45], axes=boxed , style=HIDDEN ); 1 0 –1 10 x –10 2 t 1 Selecting to use an animation or a plot may be a subjective preference, but it also depends on the concepts that the animation or plot is supposed to convey. Animating Parametrized Graphs Animating parametrized graphs is also possible. For more information on parametrized graphs, see section 5.1. 130 • Chapter 5: Plotting > animate( plot,[ [a*cos(u), sin(u), u=0..2*Pi] ], a=0..2 ); By using the coords option, animate uses a coordinate system other than the Cartesian (ordinary) system.
> animate( plot, [theta*t, theta=0..8*Pi, coords=polar], t=1..4 ); To view the actual animations, enter the commands for the animations in Maple. Animation in Three Dimensions
You can use the animate command as follows. animate(plotcommand, plotargs, t =a..b,... ) animate(plotcommand, plotargs, t =L,... ) • plotcommand  Maple procedure that generates a 2D or 3D plot • plotargs  represents arguments to the plot command • t  name of the parameter on which the animation is made 5.3 Animation • 131 • a,b  real constants giving the range of the animation • L  list of real or complex constants The following is an example of a threedimensional animation.
> animate( plot3d, [cos(t*x)*sin(t*y), > x=Pi..Pi, y=Pi..Pi], t=1..2 ); Specifying Frames By default, a threedimensional animation consists of eight plots (frames). As with twodimensional animations, the frames option determines the number of frames.
> animate( plot3d, [cos(t*x)*sin(t*y), x=Pi..Pi, y=Pi..Pi], t=1..2, > frames=16 ); Section 5.2 describes threedimensional parametrized plots. You ca...
View
Full
Document
 Spring '12
 NIL
 Math, Division

Click to edit the document details