Computes the complex projection functions.
#include <complex.h> double complex cproj (z) double complex z; float complex cprojf (z) float complex z; long double complex cprojl (z) long double complex z;
The cproj, cprojf, and cprojl subroutines compute a projection of z onto the Riemann sphere: z projects to z, except that all complex infinities (even those with one infinite part and one NaN part) project to positive infinity on the real axis. If z has an infinite part, cproj(z) shall be equivalent to:
INFINITY + I * copysign(0.0, cimag(z))
z | Specifies the value to be projected. |
The cproj, cprojf, and cprojl subroutines return the value of the projection onto the Riemann sphere.
carg, cargf, or cargl Subroutine,cimag, cimagf, or cimagl Subroutine, conj, conjf, or conjl Subroutine, and creal, crealf, or creall Subroutine.
math.h in AIX 5L Version 5.2 Files Reference.