Graphs


This page contains details of some Graphing applets which I produced over Christmas 1999.

GraphAnything


Description

GraphAnything is the product of a class I wrote to simplify a string of Algebra (Algebra.class) and a class I wrote to Plot a series of values (PlotAnything.class). The GraphAnything class also requires classes to do Conversions (Conversions.class) and to hold the information about the points on the graph (PointValue.class). I simply wrote an Applet which extended the PlotAnything Applet and used the facilities from the Algebra class to generate a series of values from the equation which could then be plotted. The GraphAnything Applet is passed parameters about what functions to display, the range of values for the x- and y- axis and additional parameters to control the final output to display. GraphAnything itself only handles these parameters and generates the points, the rest of the work is in the other classes mentioned above.
Known Problems
There are a number of issues with the Algebra parser which are raised by the plotting of some extreme graphs. I know about these and will fix them as soon as I get some time to devote to them.
  1. Problems with vertical asymptotes - When f(x) = +/- infinity over the specified range, there are problems
  2. EXP numbers - Confusion arises when f(x) = E-, the negative sign is not always dealt with correctly in this case
Examples


Download

You can download the classes for this applet now.

Download now (13KB)

Note: You will require WinZip to extract the files.


PlotAnything


Description

PlotAnything allows the user to plot a series of values on a 2-axis graph.
Simply pass the applet a series of points and it will plot them on relevant axes. A lot of the basic functionality of PlotAnything is not used by GraphAnything because it is not appropriate.

Examples


Download

You can download the classes for this applet now.

Download now (7KB)

Note: You will require WinZip to extract the files.


[Back to top]
Current location: TWil.net - Java - Graphs
Email: webmaster@twil.net
© Thomas Wilson 2006