conjg(x): Complex Conjugate

Complex conjugate function.

Declaration

Sintaxe

retval = conjg(x)
function conjgz32(x)
function conjgz64(x)

Argumentos

x the input value must be of type complex.

Valores de retorno

The return value is of complex type.

Descrição

conjg(x) converts the input value x to its conjugate.

For x complex input value, the result is calculated using mathematical formula:

\(x + iy\) converted to \(x - iy\)

\(i\) the imaginary part is the result.

Tipos

Supported argument types is complex.

interface conjg
    module procedure conjgz32, conjgz64
end interface

contains

function conjgz32(x)
    complex(sp) :: x
end function

function conjgz64(x)
    complex(dp) :: x
end function

Exemplos

program intrinsics_conjg
    implicit none
	print *, conjg((1.0, -3.0))
end program

Resultado:

1 + 3i

Veja Também