arg Interface

public interface arg

Return the phase of a complex number in (-π,π]


Module Procedures

private pure elemental module function argi(z) result(res)

Return the phase of an integer (as a complex number) in (-π,π]

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: z

Return Value real(kind=dp)

private pure elemental module function argr(z) result(res)

Return the phase of a real number (as a complex number) in (-π,π]

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: z

Return Value real(kind=dp)

private pure elemental module function argc(z) result(res)

Return the phase of a complex number in (-π,π]

Arguments

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

Return Value real(kind=dp)