[ Prev | Main | Next ]

SnowballProblem Applet



SnowballProblem illustrates the related rates problem of finding the rate of volume decrease of a melting snow ball, given the rate of decrease of the radius. It shows an animated rendering of a sphere that shrinks according to a specified radius function and graphs the volume versus time.

The applet tag that creates the applet is as follows:

<applet code="net.sourceforge.webcompmath.calculus.SnowballProblem" codebase="../../assets"
archive="webcompmath.jar,calculus.jar" height="400" width="600">
<param name="Example1" value="1. r(t) = 70 - 2t, substituted;4/3*pi*(70-2*t)^3;70-2*t;0;invoke;invoke" />
<param name="Example2" value="2. r(t) = 70 - 2t, not substituted;4/3*pi*(r(t))^3;70-2*t;0;invoke;invoke" />
<param name="Example3" value="3. r'=-3 when r=20;4/3*pi*(r(t))^3;70*exp(-3*t/20);0;invoke;invoke" />
</applet>

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 the volume function, with t as the independent variable.
3. The expression for the radius function, with t as the independent variable.
4. The initial value for t, usually 0.
5. Should always be "invoke". This causes the volume derivative to be recomputed for each example.
6. Should always be "invoke". This causes the radius derivative to be recomputed for each example.


[ Prev | Main | Next ]