|
MVT API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--math.objects.Expression
|
+--math.objects.UnaryExpression
|
+--math.functions.Sine
The class Sine is used to create mathematical Sine objects. It extends the UnaryExpressionclass.
| Field Summary |
| Fields inherited from class math.objects.UnaryExpression |
onlyChild |
| Constructor Summary | |
Sine(Expression only)
|
|
| Method Summary | |
java.lang.Object |
clone()
Make a deep clone of this. |
Expression |
differentiate(Variable var)
A method that returns the derivative of the Sine object using the chain rule of differentiation |
double |
evaluate(VariableSet vars,
double[] values)
A method used to evaluate a Sine object given an ordered variable vector and a corresponding array of constant double values |
Expression |
evaluateVariables(VariableSet variables,
double[] values)
An method used to evaluate a Sine object containing multiple variables given only one variable name and one value |
java.lang.String |
toString()
Overrides the toString() method of the Object class. |
| Methods inherited from class math.objects.UnaryExpression |
getOnlyChild, setOnlyChild, simplify |
| Methods inherited from class math.objects.Expression |
evaluate, evaluate, evaluate, evaluate, evaluate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Sine(Expression only)
| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public double evaluate(VariableSet vars,
double[] values)
throws java.lang.ArithmeticException,
IllegalEvaluationException,
VariableUndefinedException
evaluate in class Expressionvars - the name of the VariableVector of Variables
associated with the function.
java.lang.ArithmeticException - for NaN and Divide by Zero
IllegalEvaluationException - if an error occurs
VariableUndefinedException - for Variables not defined
public Expression evaluateVariables(VariableSet variables,
double[] values)
throws java.lang.ArithmeticException,
IllegalEvaluationException
evaluateVariables in class Expressionvariables - a VariableSet valuevalues - a double[] value
IllegalEvaluationException - if the number of variables
do not equal the number of values.
java.lang.ArithmeticException - for NaN and Divide by Zeropublic Expression differentiate(Variable var)
differentiate in class Expressionvar - the variable of differentiation
|
MVT API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||