Next: COS, Previous: COMPLEX, Up: Intrinsic Procedures [Contents][Index]
CONJG — Complex conjugate functionCONJG(Z) returns the conjugate of Z. If Z is (x, y)
then the result is (x, -y)
Fortran 77 and later, has overloads that are GNU extensions
Elemental function
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
| Name | Argument | Return type | Standard |
CONJG(Z) | COMPLEX Z | COMPLEX | GNU extension |
DCONJG(Z) | COMPLEX(8) Z | COMPLEX(8) | GNU extension |