conjg(z)
returns the conjugate of z
. If z
is (x, y)
then the result is (x, -y)
FORTRAN 77 and later
z = conjg(z)
z
- The type shall be complex
.The return value is of type complex
.
program test_conjg
complex :: z = (2.0, 3.0)
complex(8) :: dz = (2.71_8, -3.14_8)
z= conjg(z)
print *, z
dz = dconjg(dz)
print *, dz
end program test_conjg