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 usingderivative.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doublederivative(double x, int n)Computes (or estimates) the nth derivative of the function at point x.-
Methods inherited from interface umontreal.iro.lecuyer.functions.MathFunction
evaluate
-
-
-
-
Method Detail
-
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 ofevaluate.- Parameters:
x- the point to evaluate the derivate to.n- the order of the derivative.- Returns:
- the resulting derivative.
- Throws:
java.lang.IllegalArgumentException- if n is negative or 0.
-
-
DMelt 3.0 © DataMelt by jWork.ORG