2013-12-06 12:04:52 +01:00
|
|
|
.\" $NetBSD: cproj.3,v 1.4 2012/12/27 21:34:10 wiz Exp $
|
2011-03-18 16:52:16 +01:00
|
|
|
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
|
2013-12-06 12:04:52 +01:00
|
|
|
.Dd December 27, 2012
|
|
|
|
.Dt CPROJ 3
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cproj ,
|
|
|
|
.Nm cprojf ,
|
|
|
|
.Nm cprojl
|
|
|
|
.Nd complex projection functions
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.In complex.h
|
|
|
|
.Ft double
|
|
|
|
.Fn cproj "double complex z"
|
|
|
|
.Ft float
|
|
|
|
.Fn cprojf "float complex z"
|
|
|
|
.Ft long double
|
|
|
|
.Fn cprojl "long double complex z"
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
These functions compute a projection of
|
|
|
|
.Ar z
|
|
|
|
onto the Riemann sphere:
|
|
|
|
.Ar z
|
|
|
|
projects to
|
|
|
|
.Ar z ,
|
|
|
|
except that all complex infinities (even those
|
2011-03-18 16:52:16 +01:00
|
|
|
with one infinite part and one NaN part) project to positive infinity on the
|
2013-12-06 12:04:52 +01:00
|
|
|
real axis.
|
|
|
|
If
|
|
|
|
.Ar z
|
|
|
|
has an infinite part, then
|
|
|
|
.Fn cproj
|
|
|
|
shall be equivalent to:
|
|
|
|
.Bd -literal -offset indent
|
2011-03-18 16:52:16 +01:00
|
|
|
INFINITY + I * copysign(0.0, cimag(z))
|
2013-12-06 12:04:52 +01:00
|
|
|
.Ed
|
|
|
|
.Sh RETURN VALUES
|
2011-03-18 16:52:16 +01:00
|
|
|
These functions return the value of the projection onto the Riemann sphere.
|
2013-12-06 12:04:52 +01:00
|
|
|
.Sh ERRORS
|
2011-03-18 16:52:16 +01:00
|
|
|
No errors are defined.
|
2013-12-06 12:04:52 +01:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr carg 3 ,
|
|
|
|
.Xr cimag 3 ,
|
|
|
|
.Xr conj 3 ,
|
|
|
|
.Xr creal 3 ,
|
|
|
|
.St -p1003.1-2001
|
|
|
|
.Aq Pa complex.h
|
|
|
|
.Sh COPYRIGHT
|
2011-03-18 16:52:16 +01:00
|
|
|
Portions of this text are reprinted and reproduced in electronic form
|
|
|
|
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
|
|
|
|
-- Portable Operating System Interface (POSIX), The Open Group Base
|
|
|
|
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
|
2013-12-06 12:04:52 +01:00
|
|
|
Electrical and Electronics Engineers, Inc and The Open Group.
|
|
|
|
In the
|
2011-03-18 16:52:16 +01:00
|
|
|
event of any discrepancy between this version and the original IEEE and
|
|
|
|
The Open Group Standard, the original IEEE and The Open Group Standard
|
2013-12-06 12:04:52 +01:00
|
|
|
is the referee document.
|
|
|
|
The original Standard can be obtained online at
|
2011-03-18 16:52:16 +01:00
|
|
|
http://www.opengroup.org/unix/online.html .
|