Represents a mathematical function whose \(n\)th derivative can be computed using derivative(double,int). More...
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\). | |
Represents a mathematical function whose \(n\)th derivative can be computed using derivative(double,int).
Definition at line 33 of file MathFunctionWithDerivative.java.
| 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).
| x | the point to evaluate the derivate to. |
| n | the order of the derivative. |
| IllegalArgumentException | if `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.