arg Function

public elemental function arg(z) result(t)

Returns the complex argument θ of a complex number z=r·exp(iθ).

Note

: This should be rewritten via z%re, z%im when compilers support it.

Arguments

Type IntentOptional Attributes Name
complex(kind=wp), intent(in) :: z

Complex number

Return Value real(kind=wp)

Complex argument