Introduction to Mathematica for High School Math (for Students and Teachers) #6
Author
Ruth Dover
Title
Introduction to Mathematica for High School Math (for Students and Teachers) #6
Description
Introduction to Mathematica for High School Math
Category
Educational Materials
Keywords
Mathematics, education
URL
http://www.notebookarchive.org/2021-09-6h258kg/
DOI
https://notebookarchive.org/2021-09-6h258kg
Date Added
2021-09-14
Date Last Modified
2021-09-14
File Size
13.12 kilobytes
Supplements
Rights
Redistribution rights reserved



Tutorial 6: Manipulate
Tutorial 6: Manipulate
R. Dover, IMSA
Manipulate
Table
Manipulate[Plot[Sin[nx],{x,0,2π}],{n,-3,3}]
Almost always in a graphical animation, even a fairly simple one, it is necessary to add a within the command. Try the following command. Then click the small "+" to the right of the slider and experiment with the controls:
PlotRange
Plot
Manipulate[Plot[Sin[nx],{x,0,2π},PlotRange1.1],{n,-3,3}]
Note that Manipulate also works with algebraic commands. Here, we will force the step size to be 1 in the same way that we forced a step size for tables:
Manipulate[Expand[],{n,1,50,1}]
n
(x+y)
It is possible to add multiple sliders simply by adding multiple iterators within the Manipulate command, and it is also possible to specify an initial value be given for each one. Several nice options have been added to the following Plot command:
Manipulate[Plot[aSin[bx]+c,{x,0,2π},Ticks{Range[0,2π,π/3],Automatic},PlotStyleThick,PlotRange5],{{a,1},-3,3},{{b,1},-3,3},{{c,0},-3,3}]
Or we can give names to our sliders:
Manipulate[Plot[aSin[bx]+c,{x,0,2π},Ticks{Range[0,2π,π/3],Automatic},PlotStyleThick,PlotRange5],{{a,1,"amplitude"},-3,3},{{b,1,"for period"},-3,3},{{c,0,"vert shift"},-3,3}]
Your Turn
Your Turn
Define a function . Create an animation of , where is a constant. Be sure to control the range of the plot.
f
y=f(x)+c
c
Try a couple of other things. If you are looking for something new, try animating the color of a graph. (Have some fun!)


Cite this as: Ruth Dover, "Introduction to Mathematica for High School Math (for Students and Teachers) #6" from the Notebook Archive (2021), https://notebookarchive.org/2021-09-6h258kg

Download

