SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.functions.MathFunctionWithDerivative Interface Reference

Represents a mathematical function whose \(n\)th derivative can be computed using derivative(double,int). More...

Inheritance diagram for umontreal.ssj.functions.MathFunctionWithDerivative:
umontreal.ssj.functions.MathFunction umontreal.ssj.functionfit.BSpline umontreal.ssj.functionfit.SmoothingCubicSpline umontreal.ssj.functions.AverageMathFunction umontreal.ssj.functions.IdentityMathFunction umontreal.ssj.functions.Polynomial umontreal.ssj.functions.ShiftedMathFunction umontreal.ssj.functionfit.PolInterp

Public Member Functions

double derivative (double x, int n)
 Computes (or estimates) the \(n\)th derivative of the function at point x.
Public Member Functions inherited from umontreal.ssj.functions.MathFunction
double evaluate (double x)
 Returns the value of the function evaluated at \(x\).

Detailed Description

Represents a mathematical function whose \(n\)th derivative can be computed using derivative(double,int).

Definition at line 33 of file MathFunctionWithDerivative.java.

Member Function Documentation

◆ derivative()

double umontreal.ssj.functions.MathFunctionWithDerivative.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).

Parameters
xthe point to evaluate the derivate to.
nthe order of the derivative.
Returns
the resulting derivative.
Exceptions
IllegalArgumentExceptionif `n` is negative or 0.

Implemented in umontreal.ssj.functionfit.BSpline, umontreal.ssj.functionfit.SmoothingCubicSpline, umontreal.ssj.functions.AverageMathFunction, umontreal.ssj.functions.IdentityMathFunction, umontreal.ssj.functions.Polynomial, and umontreal.ssj.functions.ShiftedMathFunction.


The documentation for this interface was generated from the following file: