LearningGuide

# Maple uses double quotes to delimit strings text that

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

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. &gt; with(plots): Warning, the name changecoords has been redefined &gt; 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 two-dimensional 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. &gt; 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. &gt; animate( plot, [sin(x*t), x=-10..10], t=1..2, &gt; frames=50, numpoints=100 ); You can plot any two-dimensional animation as a three-dimensional static plot. For example, try plotting the animation of sin(xt) above as a surface. &gt; plot3d( sin(x*t), x=-10..10, t=1..2, grid=[50,100], &gt; 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 &gt; 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. &gt; 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 2-D or 3-D 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 three-dimensional animation. &gt; animate( plot3d, [cos(t*x)*sin(t*y), &gt; x=-Pi..Pi, y=-Pi..Pi], t=1..2 ); Specifying Frames By default, a three-dimensional animation consists of eight plots (frames). As with two-dimensional animations, the frames option determines the number of frames. &gt; animate( plot3d, [cos(t*x)*sin(t*y), x=-Pi..Pi, y=-Pi..Pi], t=1..2, &gt; frames=16 ); Section 5.2 describes three-dimensional parametrized plots. You ca...
View Full Document

Ask a homework question - tutors are online