1 .\" $NetBSD: cproj.3,v 1.4 2012/12/27 21:34:10 wiz Exp $
2 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
10 .Nd complex projection functions
14 .Fn cproj "double complex z"
16 .Fn cprojf "float complex z"
18 .Fn cprojl "long double complex z"
20 These functions compute a projection of
22 onto the Riemann sphere:
26 except that all complex infinities (even those
27 with one infinite part and one NaN part) project to positive infinity on the
31 has an infinite part, then
33 shall be equivalent to:
34 .Bd -literal -offset indent
35 INFINITY + I * copysign(0.0, cimag(z))
38 These functions return the value of the projection onto the Riemann sphere.
40 No errors are defined.
49 Portions of this text are reprinted and reproduced in electronic form
50 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
51 -- Portable Operating System Interface (POSIX), The Open Group Base
52 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
53 Electrical and Electronics Engineers, Inc and The Open Group.
55 event of any discrepancy between this version and the original IEEE and
56 The Open Group Standard, the original IEEE and The Open Group Standard
57 is the referee document.
58 The original Standard can be obtained online at
59 http://www.opengroup.org/unix/online.html .