umontreal.iro.lecuyer.functions
Interface MathFunctionWithDerivative
- All Superinterfaces:
- MathFunction
- All Known Implementing Classes:
- AverageMathFunction, BSpline, IdentityMathFunction, LeastSquares, PolInterp, Polynomial, ShiftedMathFunction, SmoothingCubicSpline
public interface MathFunctionWithDerivative
- extends MathFunction
Represents a mathematical function whose
nth derivative can be computed using
derivative.
|
Method Summary |
double |
derivative(double x,
int n)
Computes (or estimates) the nth derivative
of the function at point x. |
derivative
double derivative(double x,
int n)
- Computes (or estimates) the nth derivative
of the function at point x.
For n = 0, this returns the result of
evaluate.
- Parameters:
x - the point to evaluate the derivate to.n - the order of the derivative.
- Returns:
- the resulting derivative.
- Throws:
IllegalArgumentException - if n is negative or 0.
jHepWork 3.2 © jWork.org