C Programming/complex.h/cproj

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

cproj is a standard C programming language function.

Prototypes

[edit | edit source]
double complex cproj(double complex z);
float complex cprojf(float complex z);
long double complex cprojl(long double complex z);

Purpose

[edit | edit source]

Used to compute complex projection functions.

Parameters

[edit | edit source]

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

Description

[edit | edit source]

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 | edit source]

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