Represents the identity function \(f(x)=x\). More...
Public Member Functions | |
| double | evaluate (double x) |
| Returns the value of the function evaluated at \(x\). | |
| double | derivative (double x) |
| Computes (or estimates) the first derivative of the function at point x. | |
| double | derivative (double x, int n) |
| Computes (or estimates) the \(n\)th derivative of the function at point x. | |
| double | integral (double a, double b) |
| Computes (or estimates) the integral of the function over the interval \([a,
b]\). | |
Represents the identity function \(f(x)=x\).
Definition at line 32 of file IdentityMathFunction.java.
| double umontreal.ssj.functions.IdentityMathFunction.derivative | ( | double | x | ) |
Computes (or estimates) the first derivative of the function at point x.
| x | the point to evaluate the derivative to. |
Implements umontreal.ssj.functions.MathFunctionWithFirstDerivative.
Definition at line 39 of file IdentityMathFunction.java.
| double umontreal.ssj.functions.IdentityMathFunction.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. |
Implements umontreal.ssj.functions.MathFunctionWithDerivative.
Definition at line 43 of file IdentityMathFunction.java.
| double umontreal.ssj.functions.IdentityMathFunction.evaluate | ( | double | x | ) |
Returns the value of the function evaluated at \(x\).
| x | value at which the function is evaluated |
Implements umontreal.ssj.functions.MathFunction.
Definition at line 35 of file IdentityMathFunction.java.
| double umontreal.ssj.functions.IdentityMathFunction.integral | ( | double | a, |
| double | b ) |
Computes (or estimates) the integral of the function over the interval \([a, b]\).
| a | the starting point of the interval. |
| b | the ending point of the interval. |
Implements umontreal.ssj.functions.MathFunctionWithIntegral.
Definition at line 47 of file IdentityMathFunction.java.