Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

CONJG

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

result = CONJG (z)

z

(Input) Must be of type complex.

Results

The result type and kind are 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)

Example

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)

See Also