Add manpages for the complex math functions, originally from SUSv3,

roff source from the Linux documentation project.
Modifications before import:
-added NetBSD RCS ID
-removed Linux PROLOG and declarations with "long double"
-ran the "deshallify" script as required by The Open Group
Split out complex related things into an own Makefile fragment.
Thanks to hubertf for directions.
This commit is contained in:
drochner 2008-02-20 09:55:37 +00:00
parent 32e86dd423
commit c7a43da627
24 changed files with 1286 additions and 16 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1114 2008/02/09 19:34:03 jmmv Exp $
# $NetBSD: mi,v 1.1115 2008/02/20 09:55:37 drochner Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -4360,18 +4360,36 @@
./usr/share/man/cat3/buffer.0 comp-obsolete obsolete
./usr/share/man/cat3/byteorder.0 comp-c-catman .cat
./usr/share/man/cat3/bzero.0 comp-c-catman .cat
./usr/share/man/cat3/cabs.0 comp-obsolete obsolete
./usr/share/man/cat3/cabsf.0 comp-obsolete obsolete
./usr/share/man/cat3/cabs.0 comp-c-catman .cat
./usr/share/man/cat3/cabsf.0 comp-c-catman .cat
./usr/share/man/cat3/cacos.0 comp-c-catman .cat
./usr/share/man/cat3/cacosf.0 comp-c-catman .cat
./usr/share/man/cat3/cacosh.0 comp-c-catman .cat
./usr/share/man/cat3/cacoshf.0 comp-c-catman .cat
./usr/share/man/cat3/calloc.0 comp-c-catman .cat
./usr/share/man/cat3/callrpc.0 comp-c-catman .cat
./usr/share/man/cat3/can_change_color.0 comp-c-catman .cat
./usr/share/man/cat3/can_change_colors.0 comp-obsolete obsolete
./usr/share/man/cat3/carg.0 comp-c-catman .cat
./usr/share/man/cat3/cargf.0 comp-c-catman .cat
./usr/share/man/cat3/casin.0 comp-c-catman .cat
./usr/share/man/cat3/casinf.0 comp-c-catman .cat
./usr/share/man/cat3/casinh.0 comp-c-catman .cat
./usr/share/man/cat3/casinhf.0 comp-c-catman .cat
./usr/share/man/cat3/catan.0 comp-c-catman .cat
./usr/share/man/cat3/catanf.0 comp-c-catman .cat
./usr/share/man/cat3/catanh.0 comp-c-catman .cat
./usr/share/man/cat3/catanhf.0 comp-c-catman .cat
./usr/share/man/cat3/catclose.0 comp-c-catman .cat
./usr/share/man/cat3/catgets.0 comp-c-catman .cat
./usr/share/man/cat3/catopen.0 comp-c-catman .cat
./usr/share/man/cat3/cbreak.0 comp-c-catman .cat
./usr/share/man/cat3/cbrt.0 comp-c-catman .cat
./usr/share/man/cat3/cbrtf.0 comp-c-catman .cat
./usr/share/man/cat3/ccos.0 comp-c-catman .cat
./usr/share/man/cat3/ccosf.0 comp-c-catman .cat
./usr/share/man/cat3/ccosh.0 comp-c-catman .cat
./usr/share/man/cat3/ccoshf.0 comp-c-catman .cat
./usr/share/man/cat3/cdk.0 comp-obsolete obsolete
./usr/share/man/cat3/cdk_alphalist.0 comp-obsolete obsolete
./usr/share/man/cat3/cdk_binding.0 comp-obsolete obsolete
@ -4402,6 +4420,8 @@
./usr/share/man/cat3/cdk_viewer.0 comp-obsolete obsolete
./usr/share/man/cat3/ceil.0 comp-c-catman .cat
./usr/share/man/cat3/ceilf.0 comp-c-catman .cat
./usr/share/man/cat3/cexp.0 comp-c-catman .cat
./usr/share/man/cat3/cexpf.0 comp-c-catman .cat
./usr/share/man/cat3/cfgetispeed.0 comp-c-catman .cat
./usr/share/man/cat3/cfgetospeed.0 comp-c-catman .cat
./usr/share/man/cat3/cfmakeraw.0 comp-c-catman .cat
@ -4418,6 +4438,8 @@
./usr/share/man/cat3/cgetset.0 comp-c-catman .cat
./usr/share/man/cat3/cgetstr.0 comp-c-catman .cat
./usr/share/man/cat3/cgetustr.0 comp-c-catman .cat
./usr/share/man/cat3/cimag.0 comp-c-catman .cat
./usr/share/man/cat3/cimagf.0 comp-c-catman .cat
./usr/share/man/cat3/circleq_empty.0 comp-obsolete obsolete
./usr/share/man/cat3/circleq_entry.0 comp-obsolete obsolete
./usr/share/man/cat3/circleq_first.0 comp-obsolete obsolete
@ -4459,6 +4481,8 @@
./usr/share/man/cat3/clntudp_bufcreate.0 comp-c-catman .cat
./usr/share/man/cat3/clntudp_create.0 comp-c-catman .cat
./usr/share/man/cat3/clock.0 comp-c-catman .cat
./usr/share/man/cat3/clog.0 comp-c-catman .cat
./usr/share/man/cat3/clogf.0 comp-c-catman .cat
./usr/share/man/cat3/closedir.0 comp-c-catman .cat
./usr/share/man/cat3/closefrom.0 comp-c-catman .cat
./usr/share/man/cat3/closelog.0 comp-c-catman .cat
@ -4470,6 +4494,8 @@
./usr/share/man/cat3/com_err.0 comp-krb5-catman kerberos,.cat
./usr/share/man/cat3/com_err_va.0 comp-krb5-catman kerberos,.cat
./usr/share/man/cat3/confstr.0 comp-c-catman .cat
./usr/share/man/cat3/conj.0 comp-c-catman .cat
./usr/share/man/cat3/conjf.0 comp-c-catman .cat
./usr/share/man/cat3/copysign.0 comp-c-catman .cat
./usr/share/man/cat3/copysignf.0 comp-c-catman .cat
./usr/share/man/cat3/copywin.0 comp-c-catman .cat
@ -4477,9 +4503,23 @@
./usr/share/man/cat3/cosf.0 comp-c-catman .cat
./usr/share/man/cat3/cosh.0 comp-c-catman .cat
./usr/share/man/cat3/coshf.0 comp-c-catman .cat
./usr/share/man/cat3/cpow.0 comp-c-catman .cat
./usr/share/man/cat3/cpowf.0 comp-c-catman .cat
./usr/share/man/cat3/creal.0 comp-c-catman .cat
./usr/share/man/cat3/crealf.0 comp-c-catman .cat
./usr/share/man/cat3/creat.0 comp-c-catman .cat
./usr/share/man/cat3/crypt.0 comp-c-catman .cat
./usr/share/man/cat3/crypto.0 comp-c-catman crypto,.cat
./usr/share/man/cat3/csin.0 comp-c-catman .cat
./usr/share/man/cat3/csinf.0 comp-c-catman .cat
./usr/share/man/cat3/csinh.0 comp-c-catman .cat
./usr/share/man/cat3/csinhf.0 comp-c-catman .cat
./usr/share/man/cat3/csqrt.0 comp-c-catman .cat
./usr/share/man/cat3/csqrtf.0 comp-c-catman .cat
./usr/share/man/cat3/ctan.0 comp-c-catman .cat
./usr/share/man/cat3/ctanf.0 comp-c-catman .cat
./usr/share/man/cat3/ctanh.0 comp-c-catman .cat
./usr/share/man/cat3/ctanhf.0 comp-c-catman .cat
./usr/share/man/cat3/ctermid.0 comp-c-catman .cat
./usr/share/man/cat3/ctime.0 comp-c-catman .cat
./usr/share/man/cat3/ctime_r.0 comp-c-catman .cat
@ -8968,18 +9008,36 @@
./usr/share/man/man3/buffer.3 comp-obsolete obsolete
./usr/share/man/man3/byteorder.3 comp-c-man .man
./usr/share/man/man3/bzero.3 comp-c-man .man
./usr/share/man/man3/cabs.3 comp-obsolete obsolete
./usr/share/man/man3/cabsf.3 comp-obsolete obsolete
./usr/share/man/man3/cabs.3 comp-c-man .man
./usr/share/man/man3/cabsf.3 comp-c-man .man
./usr/share/man/man3/cacos.3 comp-c-man .man
./usr/share/man/man3/cacosf.3 comp-c-man .man
./usr/share/man/man3/cacosh.3 comp-c-man .man
./usr/share/man/man3/cacoshf.3 comp-c-man .man
./usr/share/man/man3/calloc.3 comp-c-man .man
./usr/share/man/man3/callrpc.3 comp-c-man .man
./usr/share/man/man3/can_change_color.3 comp-c-man .man
./usr/share/man/man3/can_change_colors.3 comp-obsolete obsolete
./usr/share/man/man3/carg.3 comp-c-man .man
./usr/share/man/man3/cargf.3 comp-c-man .man
./usr/share/man/man3/casin.3 comp-c-man .man
./usr/share/man/man3/casinf.3 comp-c-man .man
./usr/share/man/man3/casinh.3 comp-c-man .man
./usr/share/man/man3/casinhf.3 comp-c-man .man
./usr/share/man/man3/catan.3 comp-c-man .man
./usr/share/man/man3/catanf.3 comp-c-man .man
./usr/share/man/man3/catanh.3 comp-c-man .man
./usr/share/man/man3/catanhf.3 comp-c-man .man
./usr/share/man/man3/catclose.3 comp-c-man .man
./usr/share/man/man3/catgets.3 comp-c-man .man
./usr/share/man/man3/catopen.3 comp-c-man .man
./usr/share/man/man3/cbreak.3 comp-c-man .man
./usr/share/man/man3/cbrt.3 comp-c-man .man
./usr/share/man/man3/cbrtf.3 comp-c-man .man
./usr/share/man/man3/ccos.3 comp-c-man .man
./usr/share/man/man3/ccosf.3 comp-c-man .man
./usr/share/man/man3/ccosh.3 comp-c-man .man
./usr/share/man/man3/ccoshf.3 comp-c-man .man
./usr/share/man/man3/cdk.3 comp-obsolete obsolete
./usr/share/man/man3/cdk_alphalist.3 comp-obsolete obsolete
./usr/share/man/man3/cdk_binding.3 comp-obsolete obsolete
@ -9010,6 +9068,8 @@
./usr/share/man/man3/cdk_viewer.3 comp-obsolete obsolete
./usr/share/man/man3/ceil.3 comp-c-man .man
./usr/share/man/man3/ceilf.3 comp-c-man .man
./usr/share/man/man3/cexp.3 comp-c-man .man
./usr/share/man/man3/cexpf.3 comp-c-man .man
./usr/share/man/man3/cfgetispeed.3 comp-c-man .man
./usr/share/man/man3/cfgetospeed.3 comp-c-man .man
./usr/share/man/man3/cfmakeraw.3 comp-c-man .man
@ -9026,6 +9086,8 @@
./usr/share/man/man3/cgetset.3 comp-c-man .man
./usr/share/man/man3/cgetstr.3 comp-c-man .man
./usr/share/man/man3/cgetustr.3 comp-c-man .man
./usr/share/man/man3/cimag.3 comp-c-man .man
./usr/share/man/man3/cimagf.3 comp-c-man .man
./usr/share/man/man3/circleq_empty.3 comp-obsolete obsolete
./usr/share/man/man3/circleq_entry.3 comp-obsolete obsolete
./usr/share/man/man3/circleq_first.3 comp-obsolete obsolete
@ -9067,6 +9129,8 @@
./usr/share/man/man3/clntudp_bufcreate.3 comp-c-man .man
./usr/share/man/man3/clntudp_create.3 comp-c-man .man
./usr/share/man/man3/clock.3 comp-c-man .man
./usr/share/man/man3/clog.3 comp-c-man .man
./usr/share/man/man3/clogf.3 comp-c-man .man
./usr/share/man/man3/closedir.3 comp-c-man .man
./usr/share/man/man3/closefrom.3 comp-c-man .man
./usr/share/man/man3/closelog.3 comp-c-man .man
@ -9078,6 +9142,8 @@
./usr/share/man/man3/com_err.3 comp-krb5-man kerberos,.man
./usr/share/man/man3/com_err_va.3 comp-krb5-man kerberos,.man
./usr/share/man/man3/confstr.3 comp-c-man .man
./usr/share/man/man3/conj.3 comp-c-man .man
./usr/share/man/man3/conjf.3 comp-c-man .man
./usr/share/man/man3/copysign.3 comp-c-man .man
./usr/share/man/man3/copysignf.3 comp-c-man .man
./usr/share/man/man3/copywin.3 comp-c-man .man
@ -9085,9 +9151,23 @@
./usr/share/man/man3/cosf.3 comp-c-man .man
./usr/share/man/man3/cosh.3 comp-c-man .man
./usr/share/man/man3/coshf.3 comp-c-man .man
./usr/share/man/man3/cpow.3 comp-c-man .man
./usr/share/man/man3/cpowf.3 comp-c-man .man
./usr/share/man/man3/creal.3 comp-c-man .man
./usr/share/man/man3/crealf.3 comp-c-man .man
./usr/share/man/man3/creat.3 comp-c-man .man
./usr/share/man/man3/crypt.3 comp-c-man .man
./usr/share/man/man3/crypto.3 comp-c-man crypto,.man
./usr/share/man/man3/csin.3 comp-c-man .man
./usr/share/man/man3/csinf.3 comp-c-man .man
./usr/share/man/man3/csinh.3 comp-c-man .man
./usr/share/man/man3/csinhf.3 comp-c-man .man
./usr/share/man/man3/csqrt.3 comp-c-man .man
./usr/share/man/man3/csqrtf.3 comp-c-man .man
./usr/share/man/man3/ctan.3 comp-c-man .man
./usr/share/man/man3/ctanf.3 comp-c-man .man
./usr/share/man/man3/ctanh.3 comp-c-man .man
./usr/share/man/man3/ctanhf.3 comp-c-man .man
./usr/share/man/man3/ctermid.3 comp-c-man .man
./usr/share/man/man3/ctime.3 comp-c-man .man
./usr/share/man/man3/ctime_r.3 comp-c-man .man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.81 2008/02/09 02:37:21 mrg Exp $
# $NetBSD: Makefile,v 1.82 2008/02/20 09:55:38 drochner Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@ -141,16 +141,6 @@ COMMON_SRCS = e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \
lrint.c lrintf.c llrint.c llrintf.c lround.c lroundf.c llround.c \
llroundf.c s_frexp.c s_ldexp.c s_modf.c
.PATH: ${.CURDIR}/complex
COMMON_SRCS+= cabs.c cabsf.c carg.c cargf.c
COMMON_SRCS+= creal.c crealf.c cimag.c cimagf.c conj.c conjf.c
COMMON_SRCS+= csqrt.c cexp.c clog.c cpow.c
COMMON_SRCS+= cephes_subr.c csin.c ccos.c ctan.c csinh.c ccosh.c ctanh.c
COMMON_SRCS+= casin.c cacos.c catan.c casinh.c cacosh.c catanh.c
COMMON_SRCS+= csqrtf.c cexpf.c clogf.c cpowf.c
COMMON_SRCS+= cephes_subrf.c csinf.c ccosf.c ctanf.c csinhf.c ccoshf.c ctanhf.c
COMMON_SRCS+= casinf.c cacosf.c catanf.c casinhf.c cacoshf.c catanhf.c
.PATH: ${.CURDIR}/compat
COMMON_SRCS+= compat_cabs.c compat_cabsf.c
# XXX our compatibility cabs() is different!
@ -239,6 +229,7 @@ MLINKS+=tanh.3 tanhf.3
MLINKS+=round.3 roundf.3
MLINKS+=trunc.3 truncf.3
.include "${.CURDIR}/complex/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"
.include <bsd.lib.mk>
.include <bsd.subdir.mk>

View File

@ -0,0 +1,24 @@
# $NetBSD: Makefile.inc,v 1.1 2008/02/20 09:55:38 drochner Exp $
.PATH: ${.CURDIR}/complex
COMMON_SRCS+= cabs.c cabsf.c carg.c cargf.c
COMMON_SRCS+= creal.c crealf.c cimag.c cimagf.c conj.c conjf.c
COMMON_SRCS+= csqrt.c cexp.c clog.c cpow.c
COMMON_SRCS+= cephes_subr.c csin.c ccos.c ctan.c csinh.c ccosh.c ctanh.c
COMMON_SRCS+= casin.c cacos.c catan.c casinh.c cacosh.c catanh.c
COMMON_SRCS+= csqrtf.c cexpf.c clogf.c cpowf.c
COMMON_SRCS+= cephes_subrf.c csinf.c ccosf.c ctanf.c csinhf.c ccoshf.c ctanhf.c
COMMON_SRCS+= casinf.c cacosf.c catanf.c casinhf.c cacoshf.c catanhf.c
MAN+= cabs.3 cacos.3 cacosh.3 carg.3 casin.3 casinh.3 catan.3 catanh.3
MAN+= ccos.3 ccosh.3 cexp.3 cimag.3 clog.3 conj.3 cpow.3 creal.3
MAN+= csin.3 csinh.3 csqrt.3 ctan.3 ctanh.3
MLINKS+= cabs.3 cabsf.3 cacos.3 cacosf.3 cacosh.3 cacoshf.3
MLINKS+= carg.3 cargf.3 casin.3 casinf.3 casinh.3 casinhf.3
MLINKS+= catan.3 catanf.3 catanh.3 catanhf.3 ccos.3 ccosf.3
MLINKS+= ccosh.3 ccoshf.3 cexp.3 cexpf.3 cimag.3 cimagf.3
MLINKS+= clog.3 clogf.3 conj.3 conjf.3 cpow.3 cpowf.3
MLINKS+= creal.3 crealf.3 csin.3 csinf.3 csinh.3 csinhf.3
MLINKS+= csqrt.3 csqrtf.3 ctan.3 ctanf.3 ctanh.3 ctanhf.3

53
lib/libm/complex/cabs.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: cabs.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CABS" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" cabs
.SH NAME
cabs, cabsf \- return a complex absolute value
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double cabs(double complex\fP \fIz\fP\fB);
.br
float cabsf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex absolute value (also called
norm, modulus, or magnitude) of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex absolute value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
The Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

57
lib/libm/complex/cacos.3 Normal file
View File

@ -0,0 +1,57 @@
.\" $NetBSD: cacos.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CACOS" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" cacos
.SH NAME
cacos, cacosf \- complex arc cosine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex cacos(double complex\fP \fIz\fP\fB);
.br
float complex cacosf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex arc cosine of \fIz\fP, with
branch cuts outside the interval [-1,\ +1] along the
real axis.
.SH RETURN VALUE
.LP
These functions return the complex arc cosine value, in the
range of a strip mathematically unbounded along the imaginary
axis and in the interval [0,\ pi] along the real axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIccos\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

58
lib/libm/complex/cacosh.3 Normal file
View File

@ -0,0 +1,58 @@
.\" $NetBSD: cacosh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CACOSH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" cacosh
.SH NAME
cacosh, cacoshf \- complex arc hyperbolic cosine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex cacosh(double complex\fP \fIz\fP\fB);
.br
float complex cacoshf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex arc hyperbolic cosine of
\fIz\fP, with a branch cut at values less than 1 along the
real axis.
.SH RETURN VALUE
.LP
These functions return the complex arc hyperbolic cosine value,
in the range of a half-strip of non-negative values along
the real axis and in the interval [-\fIi\fPpi,\ +\fIi\fPpi] along
the imaginary axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIccosh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

56
lib/libm/complex/carg.3 Normal file
View File

@ -0,0 +1,56 @@
.\" $NetBSD: carg.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CARG" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" carg
.SH NAME
carg, cargf \- complex argument functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double carg(double complex\fP \fIz\fP\fB);
.br
float cargf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the argument (also called phase angle)
of \fIz\fP, with a branch cut along the negative real
axis.
.SH RETURN VALUE
.LP
These functions return the value of the argument in the interval
[-pi,\ +pi].
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcimag\fP(), \fIconj\fP(), \fIcproj\fP(), the
Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

58
lib/libm/complex/casin.3 Normal file
View File

@ -0,0 +1,58 @@
.\" $NetBSD: casin.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CASIN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" casin
.SH NAME
casin, casinf \- complex arc sine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex casin(double complex\fP \fIz\fP\fB);
.br
float complex casinf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex arc sine of \fIz\fP, with
branch cuts outside the interval [-1,\ +1] along the
real axis.
.SH RETURN VALUE
.LP
These functions return the complex arc sine value, in the range
of a strip mathematically unbounded along the imaginary
axis and in the interval [-pi/2,\ +pi/2] along the
real axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcsin\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

58
lib/libm/complex/casinh.3 Normal file
View File

@ -0,0 +1,58 @@
.\" $NetBSD: casinh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CASINH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" casinh
.SH NAME
casinh, casinhf \- complex arc hyperbolic sine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex casinh(double complex\fP \fIz\fP\fB);
.br
float complex casinhf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex arc hyperbolic sine of \fIz\fP,
with branch cuts outside the interval
[-\fIi\fP,\ +\fIi\fP] along the imaginary axis.
.SH RETURN VALUE
.LP
These functions return the complex arc hyperbolic sine value,
in the range of a strip mathematically unbounded along the
real axis and in the interval [-\fIi\fPpi/2,\ +\fIi\fPpi/2] along
the imaginary axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcsinh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

58
lib/libm/complex/catan.3 Normal file
View File

@ -0,0 +1,58 @@
.\" $NetBSD: catan.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CATAN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" catan
.SH NAME
catan, catanf \- complex arc tangent functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex catan(double complex\fP \fIz\fP\fB);
.br
float complex catanf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex arc tangent of \fIz\fP,
with branch cuts outside the interval
[-\fIi\fP,\ +\fIi\fP] along the imaginary axis.
.SH RETURN VALUE
.LP
These functions return the complex arc tangent value, in the
range of a strip mathematically unbounded along the imaginary
axis and in the interval [-pi/2,\ +pi/2] along the
real axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIctan\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

58
lib/libm/complex/catanh.3 Normal file
View File

@ -0,0 +1,58 @@
.\" $NetBSD: catanh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CATANH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" catanh
.SH NAME
catanh, catanhf \- complex arc hyperbolic tangent functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex catanh(double complex\fP \fIz\fP\fB);
.br
float complex catanhf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex arc hyperbolic tangent of
\fIz\fP, with branch cuts outside the interval
[-1,\ +1] along the real axis.
.SH RETURN VALUE
.LP
These functions return the complex arc hyperbolic tangent value,
in the range of a strip mathematically unbounded along
the real axis and in the interval [-\fIi\fPpi/2,\ +\fIi\fPpi/2] along
the imaginary axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIctanh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

53
lib/libm/complex/ccos.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: ccos.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CCOS" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" ccos
.SH NAME
ccos, ccosf \- complex cosine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex ccos(double complex\fP \fIz\fP\fB);
.br
float complex ccosf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex cosine of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex cosine value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcacos\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

53
lib/libm/complex/ccosh.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: ccosh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CCOSH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" ccosh
.SH NAME
ccosh, ccoshf \- complex hyperbolic cosine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex ccosh(double complex\fP \fIz\fP\fB);
.br
float complex ccoshf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex hyperbolic cosine of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex hyperbolic cosine value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcacosh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

54
lib/libm/complex/cexp.3 Normal file
View File

@ -0,0 +1,54 @@
.\" $NetBSD: cexp.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CEXP" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" cexp
.SH NAME
cexp, cexpf \- complex exponential functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex cexp(double complex\fP \fIz\fP\fB);
.br
float complex cexpf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex exponent of \fIz\fP, defined
as \fIe**z\fP.
.SH RETURN VALUE
.LP
These functions return the complex exponential value of \fIz\fP.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIclog\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

61
lib/libm/complex/cimag.3 Normal file
View File

@ -0,0 +1,61 @@
.\" $NetBSD: cimag.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CIMAG" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" cimag
.SH NAME
cimag, cimagf \- complex imaginary functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double cimag(double complex\fP \fIz\fP\fB);
.br
float cimagf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the imaginary part of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the imaginary part value (as a real).
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
For a variable \fIz\fP of complex type:
.sp
.RS
.nf
\fBz == creal(z) + cimag(z)*I
\fP
.fi
.RE
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcarg\fP(), \fIconj\fP(), \fIcproj\fP(), \fIcreal\fP(), the
Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

58
lib/libm/complex/clog.3 Normal file
View File

@ -0,0 +1,58 @@
.\" $NetBSD: clog.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CLOG" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" clog
.SH NAME
clog, clogf \- complex natural logarithm functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex clog(double complex\fP \fIz\fP\fB);
.br
float complex clogf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex natural (base \fIe\fP) logarithm
of \fIz\fP, with a branch cut along the negative
real axis.
.SH RETURN VALUE
.LP
These functions return the complex natural logarithm value,
in the range of a strip mathematically unbounded along the
real axis and in the interval [-\fIi\fPpi,\ +\fIi\fPpi] along the
imaginary axis.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcexp\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

54
lib/libm/complex/conj.3 Normal file
View File

@ -0,0 +1,54 @@
.\" $NetBSD: conj.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CONJ" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" conj
.SH NAME
conj, conjf \- complex conjugate functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex conj(double complex\fP \fIz\fP\fB);
.br
float complex conjf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex conjugate of \fIz\fP, by
reversing the sign of its imaginary part.
.SH RETURN VALUE
.LP
These functions return the complex conjugate value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcarg\fP(), \fIcimag\fP(), \fIcproj\fP(), \fIcreal\fP(), the
Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

57
lib/libm/complex/cpow.3 Normal file
View File

@ -0,0 +1,57 @@
.\" $NetBSD: cpow.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CPOW" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" cpow
.SH NAME
cpow, cpowf \- complex power functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex cpow(double complex\fP \fIx\fP\fB, double complex\fP
\fIy\fP\fB);
.br
float complex cpowf(float complex\fP \fIx\fP\fB, float complex\fP
\fIy\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex power function \fIx**y\fP,
with a branch cut for the first
parameter along the negative real axis.
.SH RETURN VALUE
.LP
These functions return the complex power function value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcabs\fP(), \fIcsqrt\fP(), the Base Definitions volume of
IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

61
lib/libm/complex/creal.3 Normal file
View File

@ -0,0 +1,61 @@
.\" $NetBSD: creal.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CREAL" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" creal
.SH NAME
creal, crealf \- complex real functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double creal(double complex\fP \fIz\fP\fB);
.br
float crealf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the real part of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the real part value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
For a variable \fIz\fP of type \fBcomplex\fP:
.sp
.RS
.nf
\fBz == creal(z) + cimag(z)*I
\fP
.fi
.RE
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcarg\fP(), \fIcimag\fP(), \fIconj\fP(), \fIcproj\fP(), the
Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

53
lib/libm/complex/csin.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: csin.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CSIN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" csin
.SH NAME
csin, csinf \- complex sine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex csin(double complex\fP \fIz\fP\fB);
.br
float complex csinf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex sine of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex sine value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcasin\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

53
lib/libm/complex/csinh.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: csinh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CSINH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" csinh
.SH NAME
csinh, csinhf \- complex hyperbolic sine functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex csinh(double complex\fP \fIz\fP\fB);
.br
float complex csinhf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex hyperbolic sine of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex hyperbolic sine value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcasinh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

56
lib/libm/complex/csqrt.3 Normal file
View File

@ -0,0 +1,56 @@
.\" $NetBSD: csqrt.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CSQRT" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" csqrt
.SH NAME
csqrt, csqrtf \- complex square root functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex csqrt(double complex\fP \fIz\fP\fB);
.br
float complex csqrtf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex square root of \fIz\fP,
with a branch cut along the negative real axis.
.SH RETURN VALUE
.LP
These functions return the complex square root value, in the
range of the right half-plane (including the imaginary
axis).
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcabs\fP(), \fIcpow\fP(), the Base Definitions volume of
IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

53
lib/libm/complex/ctan.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: ctan.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CTAN" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" ctan
.SH NAME
ctan, ctanf \- complex tangent functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex ctan(double complex\fP \fIz\fP\fB);
.br
float complex ctanf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex tangent of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex tangent value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcatan\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

53
lib/libm/complex/ctanh.3 Normal file
View File

@ -0,0 +1,53 @@
.\" $NetBSD: ctanh.3,v 1.1 2008/02/20 09:55:38 drochner Exp $
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
.TH "CTANH" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" ctanh
.SH NAME
ctanh, ctanhf \- complex hyperbolic tangent functions
.SH SYNOPSIS
.LP
\fB#include <complex.h>
.br
.sp
double complex ctanh(double complex\fP \fIz\fP\fB);
.br
float complex ctanhf(float complex\fP \fIz\fP\fB);
.br
\fP
.SH DESCRIPTION
.LP
These functions compute the complex hyperbolic tangent of \fIz\fP.
.SH RETURN VALUE
.LP
These functions return the complex hyperbolic tangent value.
.SH ERRORS
.LP
No errors are defined.
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIcatanh\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<complex.h>\fP
.SH COPYRIGHT
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
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .