Seeks a zero of N non-linear equations in N variables
Finds a zero of a system of N non-linear functions in N variables
by a modification of the Powell hybrid method. This is done by using the
more general non-linear equation solver HYBRD. The user provides a
subroutine which calculates the functions.
The jacobian is calculated by a forward-difference approximation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fSolve_t), | intent(in) | :: | obj |
External object with the user-supplied subroutine which calculates the functions. |
||
| integer, | intent(in) | :: | n |
Number of functions and variables |
||
| real(kind=dp), | intent(inout) | :: | x(n) |
Initial estimate of the solution vector / the estimate of the solution vector |
||
| real(kind=dp), | intent(out) | :: | fVec(n) |
The functions evaluated at the output X |
||
| real(kind=dp), | intent(in) | :: | tol |
Satisfactory termination occurs when the algorithm estimates that the relative error between X and the solution is at most TOL. TOL should be non-negative. |
||
| integer, | intent(out) | :: | info |
Status flag
|