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
-
formula
- The formula used to define the function
-
EDU.emporia.mathbeans.SymbolicFunction()
- The no-argument constructor
-
functionValue(double)
- Used to determine the value of the function at the specified x-value
-
getFormula()
- Gets the formula used to define the function
-
setFormula(String)
- Sets the formula used to define the function
formula
protected java.lang.String formula
- The formula used to define the function
SymbolicFunction
public SymbolicFunction()
- The no-argument constructor
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
getFormula
public java.lang.String getFormula()
- Gets the formula used to define the function
- Returns:
- The formula used to define the function
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