[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

cproj, cprojf, or cprojl Subroutine

Purpose

Computes the complex projection functions.

Syntax

#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;

Description

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))

Parameters

z Specifies the value to be projected.

Return Values

The cproj, cprojf, and cprojl subroutines return the value of the projection onto the Riemann sphere.

Related Information

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.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]