VMS Help  —  CRTL  cproj
    Returns a projection of its argument onto the Riemann sphere.

    This function is OpenVMS Alpha and Integrity servers only.

    Format

      #include  <complex.h>

      double complex cproj  (double complex z);

      float complex cprojf  (float complex z);

      long double complex cprojl  (long double complex z);

1  –  Argument

 z

    A complex value.

2  –  Description

    The cproj functions compute and return 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, then cproj(z) is equivalent to:

    INFINITY + I * copysign(0.0, cimag(z))

3  –  Return Values

    x                  The value of the projection onto the Riemann
                       sphere.
Close Help