public interface Function extends Serializable
Modifier and Type | Method and Description |
---|---|
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], ...
|
int getArity()
double getVal(double[] arguments)
double getValueWithCases(double[] arguments, Cases cases)
Function derivative(int wrt)
Function derivative(Variable x)
boolean dependsOn(Variable x)