im Function

public elemental function im(z) result(y)

Returns the imaginary part of a complex number z=x+iy.

Note

: This should be replaced by z%im when compilers support it.

Arguments

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

Complex number

Return Value real(kind=wp)

Imaginary part