Finds a bracketed root using a safeguarded secant/Regula Falsi hybrid. Reference: KNMI ZEROAB safeguarded root-finding approach.
Callback interface for scalar root finding. Reference: ZEROAB routine interface used in KNMI legacy implementation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | x |
trial x coordinate |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real, | public | :: | value | ||||
| real, | public | :: | root | ||||
| real, | public | :: | payload(10) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(solver_function) | :: | f |
function for which we want to find a root |
|||
| real, | intent(in) | :: | x0 |
left bracket bound |
||
| real, | intent(in) | :: | x1 |
right bracket bound |
||
| real, | intent(in) | :: | tol |
convergence tolerance on x |
||
| integer, | intent(in) | :: | max_iter |
maximum number of iterations |