|
So much for the pictures, what about the equation
of the curve?
Each animation is defined by running a point along
a line segment, from its beginning to its end. If a is the first
end point of the segment and b is the second end point, then
we can express the location of the animation point at time t as a*(1-t)
+ b*t. Let’s use this equation to derive the equation for the
spline curve of the third example above:
First, we drag and drop point A into a Calculation Row
in the eActivity window. We then store this vector in the variable
a.
Likewise we can drag and drop point B and C and store
them in variables b and c.
Now, we can define e in terms of a and b
Notice that when using the single letter variables
(the bold letters found on the VAR tab of the keyboard), you
do not need to insert a product symbol (for example between the t
and the b in the above expression).
A similar expression can be created for f . The
expand() function can be used to simplify the resulting vector.
We can continue in this vein to create expressions for
the rest of the defined points. As one would expect, they get more
complicated as the outputs from previous computations become the inputs
to current computations:
J is the point which we traced, so this is the parametric
equation for J.
Let’s use the graphing module to plot it:
First we insert a Graph Editor into eActivity, and set
it up for a parametric plot :
Now we can drag and drop the x and y from our vector
into the graph expression editor (remembering to press ENTER to activate
the expression).
Pressing the graph button displays the plot.
We observe that this does indeed resemble the curve traced
by our animation, but it goes on a bit too long. Pressing the View
Window button brings up the View Window dialog which enables us to
examine the range of t.
We should set this to run from 0 to 1
|