Defines a type capable of encapsulating an equation of one variable of the form: f(x) = 0.
Computes the derivative of the function. If a routine for computing the derivative is not defined, the derivative is estimated via finite differences.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fcn1var_helper), | intent(in) | :: | this |
The fcn1var_helper object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value of the independent variable at which the derivative is to be computed. |
||
| real(kind=real64), | intent(in), | optional | :: | f |
An optional input specifying the function value at x. If supplied, and the derivative is being estimated numerically, the function will not be evaluated at x. |
The value of the derivative.
Executes the routine containing the function to evaluate.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fcn1var_helper), | intent(in) | :: | this |
The fcn1var_helper object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value of the independent variable at which the function should be evaluated. |
The value of the function.
Tests if the pointer to the function containing the derivative of the function to solve is defined.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fcn1var_helper), | intent(in) | :: | this |
The fcn1var_helper object. |
Returns true if the pointer has been assigned; else, false.
Tests if the pointer to the function containing the equation to solve has been assigned.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fcn1var_helper), | intent(in) | :: | this |
The fcn1var_helper object. |
Returns true if the pointer has been assigned; else, false.
Establishes a pointer to the routine containing the derivative of the equations to solve.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fcn1var_helper), | intent(inout) | :: | this |
The fcn1var_helper object. |
||
| procedure(fcn1var), | intent(in), | pointer | :: | diff |
A pointer to the function for computing the first derivative. |
Establishes a pointer to the routine containing the equations to solve.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fcn1var_helper), | intent(inout) | :: | this |
The fcn1var_helper object. |
||
| procedure(fcn1var), | intent(in), | pointer | :: | fcn |
The function pointer. |