Safe wrapper for the arithmetic-geometric mean (AGM) computation.
This interface performs lightweight AGM computation with input validation, automatic ordering. Unlike the type-bound subroutine instead, this interface does not retain intermediate calculation results, so they cannot be referenced later.
Note
x and y had opposite signs (x * y .lt. 0): returns NaNx or y is zero (x * y .eq. 0): returns 0Safe wrapper for the arithmetic-geometric mean (AGM) computation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | x | |||
| real(kind=real32), | intent(in) | :: | y |
Safe wrapper for the arithmetic-geometric mean (AGM) computation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x | |||
| real(kind=real64), | intent(in) | :: | y |
Safe wrapper for the arithmetic-geometric mean (AGM) computation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real128), | intent(in) | :: | x | |||
| real(kind=real128), | intent(in) | :: | y |