|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Function is a mathematical real-valued function of zero or more real-valued arguments. The number of arguments is called the arity of the function.
Method Summary | |
boolean |
dependsOn(Variable x)
Return true if the defintion of this function depends in some way on the variable x. |
Function |
derivative(int wrt)
Return the derivative of the function with repect to argument number wrt. |
Function |
derivative(Variable x)
Return the derivative of the function with respect to the variable x. |
int |
getArity()
Return the number of arguments of this function. |
double |
getVal(double[] arguments)
Find the value of the function at the argument values given by arguments[0], arguments[1], ... |
double |
getValueWithCases(double[] arguments,
Cases cases)
Find the value of the function at the argument values given by arguments[0], arguments[1], ... |
Method Detail |
public int getArity()
public double getVal(double[] arguments)
public double getValueWithCases(double[] arguments, Cases cases)
public Function derivative(int wrt)
public Function derivative(Variable x)
public boolean dependsOn(Variable x)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |