Compartilhar via


conj, conjf, conjl

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at conj, conjf, conjl.

Retrieves the complex conjugate of a complex number.

Syntax

_Dcomplex conj(   
   _Dcomplex z   
);  
_Fcomplex conj(   
   _Fcomplex z   
);  // C++ only  
_Lcomplex conj(   
   _Lcomplex z   
);  // C++ only  
_Fcomplex conjf(   
   _Fcomplex z   
);  
_Lcomplex conjl(   
   _Lcomplex z   
);  

Parameters

z
A complex number.

Return Value

The complex conjugate of z. The result has the same real and imaginary part as z, but with the opposite sign.

Remarks

Because C++ allows overloading, you can call overloads of conj that take and return _Fcomplex and _Lcomplex values. In a C program, conj always takes and returns a _Dcomplex value.

Requirements

Routine C header C++ header
conj, conjf, conjl <complex.h> <ccomplex>

For more compatibility information, see Compatibility in the Introduction.

See Also

Alphabetical Function Reference
norm, normf, norml
creal, crealf, creall
cproj, cprojf, cprojl
cimag, cimagf, cimagl
carg, cargf, cargl
cabs, cabsf, cabsl