Conj

 

Contents

Description

it returns the complex conjugate of the value

Syntax

complex Conj( complex cc )

Parameters

cc
[input] the complex value whose conjugate is sought.

Return

The complex conjugate

Examples

EX1

void    run_complex_Conj()
{
    complex        cc(1.2, 3.4);
    complex        cconj = Conj(cc);
    
    // Display the values:
    out_complex("original value = ", cc); // Result is "original value = 1.200000+3.400000i"
    out_complex("conjugate value = ", cconj);  // Result is "original value = 1.200000-3.400000i"
}

Remark

See Also

header to Include

origin.h

Reference