Java Graphing Applet with Equation Parser Overview
Created: 11/05/2000 ASP
Updated: 11/11/2000 ASP

 

The Graphing applet will graph up to three functions and points. The equations can be loaded through the htm file. The size of the graph and the initial graphing XMIN and XMAX can also be loaded through the htm file.

The Equation button enters a screen where the user can enter up to three equations for graphing. The ENTER key must be pressed to accept an equation. The +, -, *, /, ^, (, and ) are valid operators for equations. PI and e are constants. And the functions are: abs, sqrt, ln, sin, asin, cos, acos, tan, atan. The first variable in an equation is the variable that will be used for the equation. The Graphing XMIN and XMAX can also be changed in this screen.
The Table button enters a screen which allows the user to evaluate the equations for given values.
The Points button enters a screen where points can be placed on the graph. Entering x, y pairs or a single mouse click on the graph screen will deposit/remove points as long as the points window is opened.
The Round button will round the displayed values to a proportion of the current scale. First round simply rounds the displayed values. The second round keeps the rounded values. The X and Y position is not kept.
The Grid button toggles the grid lines on and off. The screen is divided into 10 horizontal by 10 vertical divisions of size scale.
The Back button goes back through the move/zoom list.
The Xin, Xout, Yin, Yout, In, and Out buttons are the Zoom buttons.
The Scrollbars reposition the graph.
The Reset button restores the graph to the original conditions when it was first opened.
The Home button repositions the x and y axis to -10 to 10.
A mouse double click on the graph screen centers on that point.
A mouse single click on the graph screen gives the x, y coordinates of the point.
A mouse click and drag on the graph screen will do a window zoom.
The min, max, and scale values can be changed. The scale and either min or max can be changed. The other, max or min, is recalculated through scale.
Vertical asymptotes appear but need some work.

Java Graphing Applet with Equation Parser