[ P rev | Main | Next ]

MeanValue Applet

MeanValue illustrates the mean value theorem for derivatives by showning a secant line segment and a tangent to a point, c, on a curve. The user can adjust the location of c to find a place where the tangent line is parallel to the secant.

The applet tag that creates the applet is as follows:

<applet code="net.sourceforge.webcompmath.calculus.MeanValue" codebase="../../assets"
archive="webcompmath.jar,calculus.jar" height="400" width="400">
<param name="Example1" value="1. A Parabola;x^2;-5,5,-5,5;1000;1000;1000;-1;2;0" />
<param name="Example2" value="2. A Sine Curve;sin(x);-7,16,-2,2;2300;2300;2300;-1.571;14.137;0" />
<param name="Example3" value="3. Not Differentiable;abs(x);-5,5,-5,5;1000;1000;1000;-1;2;1" />
<param name="Example4" value="4. Not Continuous;x&lt;1?-1:1;-5,5,-5,5;1000;1000;1000;-1;1;0" />

This applet takes the following parameters:

Param Name Type Default Description
Example1, ... 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 f(x), the function.
3. The xmin, xmax, ymin, and ymax to use for the graph, as a list of comma-separated numbers.
4. The number of steps for the a slider.
5. The number of steps for the b slider.
6. The number of steps for the c slider.
7. The value for a.
8. The value for b.
9. The value for c.

[ Prev | Main | Next ]