Compute arithmetic–geometric mean (AGM)
using the given arithmetic mean a and geometric mean g.
This interface provides a lightweight AGM computation
that returns only the final converged value
without storing iteration history.
For applications that need to analyze the convergence process,
use the type-bound subroutine instead,
which preserves the full iteration history.
Warning
Note
Convergence criterion
See is_not_converged
Compute arithmetic–geometric mean (AGM)
using the given arithmetic mean a and geometric mean g.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | a |
arithmetic mean |
||
| real(kind=real32), | intent(in) | :: | g |
geometric mean |
Compute arithmetic–geometric mean (AGM)
using the given arithmetic mean a and geometric mean g.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
arithmetic mean |
||
| real(kind=real64), | intent(in) | :: | g |
geometric mean |
Compute arithmetic–geometric mean (AGM)
using the given arithmetic mean a and geometric mean g.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real128), | intent(in) | :: | a |
arithmetic mean |
||
| real(kind=real128), | intent(in) | :: | g |
geometric mean |