|
MVT API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--math.objects.Expression
The Expr class defines a binary node that contains a data element and a left child and right child each pointing to a expr class object
| Constructor Summary | |
Expression()
|
|
| Method Summary | |
abstract Expression |
differentiate(Variable var)
An abstract method that returns a Expression representation of the derivative of the current Expression. |
double |
evaluate()
An abstract method used to evaluate a symbolic object given a nothing |
double |
evaluate(Variable var,
double value)
An abstract method used to evaulate a symbolic object given a one variable name and one value |
double |
evaluate(Variable var1,
double value0,
Variable var2,
double value1)
An abstract method used to evaluate a symbolic object given two variable names and two values |
double |
evaluate(Variable var1,
double value0,
Variable var2,
double value1,
Variable var3,
double value2)
A method used to evaluate a symbolic object given three variable names and three values |
double |
evaluate(Variable var1,
double value1,
Variable var2,
double value2,
Variable var3,
double value3,
Variable var4,
double value4)
A method used to evaluate a symbolic object given 4 variable names and 4 values |
abstract double |
evaluate(VariableSet variables,
double[] values)
A new abstract method used to evaulate a symbolic object given an ordered variable vector and a corresponding array of constant values |
abstract Expression |
evaluateVariables(VariableSet variables,
double[] values)
An abstract method used to evaluate a symbolic object containing multiple variables given only one variable name and one value |
abstract Expression |
simplify()
An abstract method that returns a Expression representation of the the current Expression but in a simplified form with redundant terms eliminated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Expression()
| Method Detail |
public double evaluate()
throws java.lang.ArithmeticException,
VariableUndefinedException
java.lang.ArithmeticException - for NaN and Divide by Zero
VariableUndefinedException - for Variables not defined
public double evaluate(Variable var,
double value)
throws java.lang.ArithmeticException,
VariableUndefinedException
var - the name of the Variable associated with the functionvalue - the value of the Variable
java.lang.ArithmeticException - for NaN and Divide by Zero
VariableUndefinedException - for Variables not defined
public double evaluate(Variable var1,
double value0,
Variable var2,
double value1)
throws java.lang.ArithmeticException,
VariableUndefinedException
var1 - the name of the first Variable associated with the
functionvalue0 - a double valuevar2 - the name of the second Variable associated with the
functionvalue1 - the value of the first Variable
java.lang.ArithmeticException - for NaN and Divide by Zero
VariableUndefinedException - for Variables not defined
public double evaluate(Variable var1,
double value0,
Variable var2,
double value1,
Variable var3,
double value2)
throws java.lang.ArithmeticException,
VariableUndefinedException
var1 - the name of the first Variable associated with the
functionvalue0 - a double valuevar2 - the name of the second Variable associated with the
functionvalue1 - the value of the first Variablevar3 - the name of the second Variable associated with the
functionvalue2 - the value of the second Variable
java.lang.ArithmeticException - for NaN and Divide by Zero
VariableUndefinedException - for Variables not defined
public double evaluate(Variable var1,
double value1,
Variable var2,
double value2,
Variable var3,
double value3,
Variable var4,
double value4)
throws java.lang.ArithmeticException,
VariableUndefinedException
var1 - the name of the first Variable associated with the
functionvalue1 - the value of the first Variablevar2 - the name of the second Variable associated with the
functionvalue2 - the value of the second Variablevar3 - the name of the second Variable associated with the
functionvalue3 - the value of the third Variable
java.lang.ArithmeticException - for NaN and Divide by Zero
VariableUndefinedException - for Variables not defined
public abstract double evaluate(VariableSet variables,
double[] values)
throws java.lang.ArithmeticException,
IllegalEvaluationException,
VariableUndefinedException
variables - a VariableSet value
java.lang.ArithmeticException - for NaN and Divide by Zero
IllegalEvaluationException - if an error occurs
VariableUndefinedException - for Variables not definedpublic abstract Expression differentiate(Variable var)
var - the variable of differentiation
public abstract Expression simplify()
public abstract Expression evaluateVariables(VariableSet variables,
double[] values)
throws java.lang.ArithmeticException,
IllegalEvaluationException
variables - a VariableSet valuevalues - a double[] value
java.lang.ArithmeticException - for NaN and Divide by Zero
IllegalEvaluationException - if an error occurs
|
MVT API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||