cproj, cprojf, cprojl

Retrieves the projection of a complex number on the Reimann sphere.

Syntax

_Dcomplex cproj(   
   _Dcomplex z   
);  
_Fcomplex cproj(   
   _Fcomplex z   
);  // C++ only  
_Lcomplex cproj(   
   _Lcomplex z   
);  // C++ only  
_Fcomplex cprojf(   
   _Fcomplex z   
);  
_Lcomplex cprojl(   
   _Lcomplex z   
);  

Parameters

z
A complex number.

Return Value

The projection of z on the Reimann sphere.

Remarks

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

Requirements

Routine C header C++ header
cproj, cprojf, cprojl <complex.h> <ccomplex>

For more compatibility information, see Compatibility in the Introduction.

See Also

Alphabetical Function Reference
norm, normf, norml
creal, crealf, creall
conj, conjf, conjl
cimag, cimagf, cimagl
carg, cargf, cargl
cabs, cabsf, cabsl