CONJG

Elemental Intrinsic Function (Generic): Calculates the conjugate of a complex number.

Syntax

result = CONJG (z)

z
(Input) Must be of type complex.

Results:

The result type is the same as z. If z has the value (x, y), the result has the value (x, -y).

Specific Name Argument Type Result Type
CONJG COMPLEX(4) COMPLEX(4)
DCONJG COMPLEX(8) COMPLEX(8)
QCONJG COMPLEX(16) COMPLEX(16)

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: AIMAG

Examples

CONJG ((2.0, 3.0)) has the value (2.0, -3.0).

CONJG ((1.0, -4.2)) has the value (1.0, 4.2).

The following shows another example:

COMPLEX z1
COMPLEX(8) z2
z1 = CONJG((3.0, 5.6))       ! returns (3.0, -5.6)
z2 = DCONJG((3.0D0, 5.6D0))  ! returns (3.0D0, -5.6D0)