## MotionOnLine Applet

MotionOnLine illustrates motion on a line (vertical in this applet). It graphs the position function, s(t), the velocity function, v(t), and the acceleration function, a(t). The applet also provides animation controls and an animated version of the object that is moving along the line (to help students keep the motion separate from the graphs).

The applet tag that creates the applet is as follows:

<applet code="net.sourceforge.webcompmath.calculus.MotionOnLine" codebase="../../assets"

archive="webcompmath.jar,calculus.jar" height="400" width="600">

<param name="Example1" value="1. Tossing a Ball;-4.9t^2+20t;0,4.082,-20,22;0" />

<param name="Example2" value="2. More Complex Motion;t(t-2)(t-4);0,5,-13,15;0" />

<param name="Example3" value="3. Oscillations;sin(t);0,18.85,-2,2;0" />

</applet>

This applet takes the following parameters:

Param NameTypeDefaultDescriptionExample1, ...String N/A Each example is a list of strings separated by semicolons. The strings, in order, are:

1. The name of the example, displayed in the example menu.

2. The expression for s(t), the position function.

3. The xmin, xmax, ymin, and ymax to use for the graph, as a list of comma-separated numbers.

4. The value for t, the current time.