NAME
cproj(), cprojf() — functions that project onto the Riemann sphere
SYNOPSIS
#include <complex.h>
double complex cproj(double complex z);
float complex cprojf(float complex z);
DESCRIPTION
These functions are available only for IA-64.
cproj()
returns its argument
z,
except if the argument is a complex
infinity (even if it is a complex infinity which has one infinite part and one NaN
part), then
cproj()
returns a positive infinity on the real axis, with imaginary part
copysign(0.0,cimag(
z
)).
cprojf()
is a
float
complex
version of
cproj();
it takes a
float
complex
argument and returns a
float
complex
result.
These functions raise no exceptions.
USAGE
To use these functions,
compile with the default
-Ae
option.
Make sure your program includes
<complex.h>.
Link in the math library by specifying
-lm
on the compiler or linker command line.
ERRORS
No errors are defined.
STANDARDS CONFORMANCE
cproj(),
cprojf():
ISO/IEC C99 (including Annex G,
IEC 60559-compatible complex arithmetic)