|
Fields of Slopes
|
|
|
In this tutorial, we use the custom classes from our development article
Flash Tools for Developers: Function Grapher
to create a simple plotter
which graphs the field of slopes corresponding to a differential equation dy/dx=F(x,y)
entered by the user. For convenience, we repackaged the classes from the article in a new
package, edu.uriship.math.slopes. To create a slope-field grapher, we added a new class
to the package called SlopesBoard. This class is a simple and short extension of
GraphingBoard class from the article. We added a few instance properties and two new methods
which provide the new functionality.
The applet presented here graphs a field of slopes, but using the methods of SlopesBoard inhereted from GraphingBoard class, one can easily add a text field and the code to display the graph of a user-defined function or several functions. That is one of several ways to extend the functionality of the applet in this tutorial. The code in the applet's fla file as well as the code of SlopesBoard class are exhaustively commented. That should provide all the guidance for using and modifying the the code. GraphingBoard class is described in detail in the PDF guide from our above mentioned article. Click on the screen shot below to open the applet in the new window: |
|
|
|
|
| This work is supported by the NSF grant DUE-0535327. | Last modified: December 28, 2006 |
|
|
|
| Disclaimer | |