SSJ
V. 2.6.2.

umontreal.iro.lecuyer.functions
Interface MathFunctionWithDerivative

All Superinterfaces:
MathFunction
All Known Implementing Classes:
AverageMathFunction, BSpline, IdentityMathFunction, 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.
 
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 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.

SSJ
V. 2.6.2.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.