SSJ
3.3.1
Stochastic Simulation in Java
|
Represents a mathematical function whose \(n\)th derivative can be computed using derivative(double,int). More...
Public Member Functions | |
double | derivative (double x, int n) |
Computes (or estimates) the \(n\)th derivative of the function at point x . More... | |
Public Member Functions inherited from MathFunction | |
double | evaluate (double x) |
Returns the value of the function evaluated at \(x\). More... | |
Represents a mathematical function whose \(n\)th derivative can be computed using derivative(double,int).
double derivative | ( | double | x, |
int | n | ||
) |
Computes (or estimates) the \(n\)th derivative of the function at point x
.
For \(n=0\), this returns the result of umontreal.ssj.functions.MathFunction.evaluate(double).
x | the point to evaluate the derivate to. |
n | the order of the derivative. |
IllegalArgumentException | if n is negative or 0. |
Implemented in BSpline, SmoothingCubicSpline, Polynomial, ShiftedMathFunction, AverageMathFunction, and IdentityMathFunction.