Class EDU.emporia.mathbeans.SymbolicFunction
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.emporia.mathbeans.SymbolicFunction

Object
   |
   +----MathFunction
           |
           +----EDU.emporia.mathbeans.SymbolicFunction

public class SymbolicFunction
extends MathFunction
This class can be used to construct a MathFunction object defined by a symbolic formula

Version:
1.0
Author:
Joe Yanik
Since:
7/7/00

Variable Index

 o formula
The formula used to define the function

Constructor Index

 o EDU.emporia.mathbeans.SymbolicFunction()
The no-argument constructor

Method Index

 o functionValue(double)
Used to determine the value of the function at the specified x-value
 o getFormula()
Gets the formula used to define the function
 o setFormula(String)
Sets the formula used to define the function

Variables

 o formula
protected java.lang.String formula
The formula used to define the function

Constructors

 o SymbolicFunction
public SymbolicFunction()
The no-argument constructor

Methods

 o functionValue
public double functionValue(double a)
Used to determine the value of the function at the specified x-value

Parameters:
a - The x-value
Returns:
The value of the function at the specified x-value.
Overrides:
functionValue in class MathFunction
 o getFormula
public java.lang.String getFormula()
Gets the formula used to define the function

Returns:
The formula used to define the function
 o setFormula
public void setFormula(String formula) throws Graphable_error
Sets the formula used to define the function

Parameters:
formula - The formula used to define the functoin
Throws: Graphable_error
This will be thrown if the parser is unable to parse the formulas

All Packages  Class Hierarchy  This Package  Previous  Next  Index