conjg
- Date:
10-12-2011
NAME
CONJG, DCONJG - Compute the conjugate of a complex number
SYNOPSIS
CONJG ([Z=]z])
DCONJG ([Z=]z])
IMPLEMENTATION
Cray Linux Environment (CLE)
STANDARDS
Fortran
Fortran extension: DCONJG
DESCRIPTION
The CONJG and DCONJG functions return the conjugate of a complex number. CONJG is the generic function name; DCONJG is specific. These are elemental intrinsic functions that accept the following argument:
- z
Must be type complex. See the RETURN VALUES section for information on input data types and return values.
This function evaluates y = zr - izi
NOTES
The CONJG intrinsic function name can be passed as an argument; DCONJG cannot.
RETURN VALUES
CONJG returns the complex conjugate of a complex number.
DCONJG returns the double-precision complex conjugate of a double-complex number.
EXAMPLES
The following program gives RESULT=(3.0,-4.0):
PROGRAM CONTEST
COMPLEX ARG, RESULT
ARG=(3.0,4.0)
RESULT=CONJG(ARG)
PRINT *,RESULT
STOP
END