Overview | Package | Class | Tree | Deprecated | Index | Help
| SSJ V. 2.1.1.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## umontreal.iro.lecuyer.functions
Interface MathFunctionWithDerivative

All Superinterfaces:
  MathFunction

All Known Implementing Classes:
  AverageMathFunction, IdentityMathFunction, Polynomial, ShiftedMathFunction

    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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| SSJ V. 2.1.1.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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