VANDER
: LeastSquaresGrapher Test Page
The Raw Applet
The Least Squares applet constructs itself in two ways: if passed a
set of data points as a parameter list, it assumes that it is to be
used as a tutorial, where students are to guess the slope and
intercept, comparing the energy associated with their guess against
the least squares minimum energy. If it is not passed a dat aset, it
constructs itself in calculator mode, and just gives the answer; the
calculator mode also allowd semi-log and log-log plotting of the data
points.
Tutorial Mode
We pass in parameters to indicate an example data set. This html file
contains parameters "point0" through "point15" with values
comm-separated constant pairs. The constants can be things the parsed
understands, so "pi" and "sin(pi/4)" are fair game.
This applet is invoked as:
<applet code="LeastSquaresGrapher/LeastSquaresGrapher.class" width=540 height=400>
< name="point0" value="1,0">
< name="point1" value="2,1">
< name="point2" value="3,0">
< name="point3" value="3.5,2">
< name="point4" value="4,2.9">
< name="point5" value="4.2,6">
< name="point6" value="5,2">
< name="point7" value="6.7,8">
< name="point8" value="8,13">
< name="point9" value="9,6">
< name="point10" value="10.1,12">
< name="point11" value="10.2,16">
< name="point12" value="11.3,17">
< name="point13" value="4 pi,18">
< name="point14" value="15,22">
< name="point15" value="17,20">
</applet>