re Function

public elemental function re(z) result(x)

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

Note

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

Arguments

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

Complex number

Return Value real(kind=wp)

Real part