| 1 |
'\" t |
| 2 |
.\" Copyright 2002, Walter Harms <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: GPL-1.0-or-later |
| 6 |
.\" |
| 7 |
.TH cproj 3 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
cproj, cprojf, cprojl \- project into Riemann Sphere |
| 10 |
.SH LIBRARY |
| 11 |
Math library |
| 12 |
.RI ( libm ,\~ \-lm ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
.B #include <complex.h> |
| 16 |
.P |
| 17 |
.BI "double complex cproj(double complex " z ");" |
| 18 |
.BI "float complex cprojf(float complex " z ");" |
| 19 |
.BI "long double complex cprojl(long double complex " z ");" |
| 20 |
.fi |
| 21 |
.SH DESCRIPTION |
| 22 |
These functions project a point in the plane onto the surface of a |
| 23 |
Riemann Sphere, the one-point compactification of the complex plane. |
| 24 |
Each finite point |
| 25 |
.I z |
| 26 |
projects to |
| 27 |
.I z |
| 28 |
itself. |
| 29 |
Every complex infinite value is projected to a single infinite value, |
| 30 |
namely to positive infinity on the real axis. |
| 31 |
.SH ATTRIBUTES |
| 32 |
For an explanation of the terms used in this section, see |
| 33 |
.BR attributes (7). |
| 34 |
.TS |
| 35 |
allbox; |
| 36 |
lbx lb lb |
| 37 |
l l l. |
| 38 |
Interface Attribute Value |
| 39 |
T{ |
| 40 |
.na |
| 41 |
.nh |
| 42 |
.BR cproj (), |
| 43 |
.BR cprojf (), |
| 44 |
.BR cprojl () |
| 45 |
T} Thread safety MT-Safe |
| 46 |
.TE |
| 47 |
.SH STANDARDS |
| 48 |
C11, POSIX.1-2008. |
| 49 |
.SH HISTORY |
| 50 |
glibc 2.1. |
| 51 |
C99, POSIX.1-2001. |
| 52 |
.P |
| 53 |
In glibc 2.11 and earlier, the implementation does something different |
| 54 |
(a |
| 55 |
.I stereographic |
| 56 |
projection onto a Riemann Sphere). |
| 57 |
.\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=10401 |
| 58 |
.SH SEE ALSO |
| 59 |
.BR cabs (3), |
| 60 |
.BR complex (7) |