C Programming/complex.h/cproj

From Wikibooks, open books for an open world
Jump to: navigation, search

cproj is a standard C programming language function.


double complex cproj(double complex z);
float complex cprojf(float complex z);
long double complex cprojl(long double complex z);


Used to compute complex projection functions.


The values which have to be projected are specified by z.


This is complex projection functions. these are available for integrity servers. The projection of complex floating point-number z onto the Riemann sphere is done by cproj(). But all complex infinities are projected to positive infinity on the real axis.

Return value[edit]

The cproj() return the value of projection on Riemann sphere.