summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-08-07 23:03:36 +0000
committerstefanf <stefanf@FreeBSD.org>2004-08-07 23:03:36 +0000
commitaf9e10f920a3061d50c812b227a956f3534e4ed0 (patch)
tree9a39f7b21ab1beafd97a9947b0016428f9dd6f35 /lib
parent8eb2d114c9e2bf251d351a5ad8437e36f2c93a19 (diff)
downloadFreeBSD-src-af9e10f920a3061d50c812b227a956f3534e4ed0.zip
FreeBSD-src-af9e10f920a3061d50c812b227a956f3534e4ed0.tar.gz
Add man pages for the cimag(), conj() and creal() functions.
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/Makefile7
-rw-r--r--lib/msun/man/cimag.3102
2 files changed, 107 insertions, 2 deletions
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index 73d7475..efb75c9 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -129,8 +129,8 @@ SRCS= ${COMMON_SRCS} ${ARCH_SRCS}
INCS= fenv.h math.h
MAN= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \
- cos.3 cosh.3 erf.3 exp.3 fabs.3 fdim.3 feclearexcept.3 fegetenv.3 \
- fegetround.3 fenv.3 floor.3 fmax.3 fmod.3 hypot.3 ieee.3 \
+ cimag.3 cos.3 cosh.3 erf.3 exp.3 fabs.3 fdim.3 feclearexcept.3 \
+ fegetenv.3 fegetround.3 fenv.3 floor.3 fmax.3 fmod.3 hypot.3 ieee.3 \
ieee_test.3 j0.3 lgamma.3 math.3 rint.3 round.3 \
signbit.3 sin.3 sinh.3 sqrt.3 tan.3 tanh.3 trunc.3
@@ -142,6 +142,9 @@ MLINKS+=atan.3 atanf.3
MLINKS+=atanh.3 atanhf.3
MLINKS+=atan2.3 atan2f.3
MLINKS+=ceil.3 ceilf.3
+MLINKS+=cimag.3 cimagf.3 cimag.3 cimagl.3 \
+ cimag.3 conj.3 cimag.3 conjf.3 cimag.3 conjl.3 \
+ cimag.3 creal.3 cimag.3 crealf.3 cimag.3 creall.3
MLINKS+=cos.3 cosf.3
MLINKS+=cosh.3 coshf.3
MLINKS+=erf.3 erfc.3 erf.3 erff.3 erf.3 erfcf.3
diff --git a/lib/msun/man/cimag.3 b/lib/msun/man/cimag.3
new file mode 100644
index 0000000..8fe3cc4
--- /dev/null
+++ b/lib/msun/man/cimag.3
@@ -0,0 +1,102 @@
+.\" Copyright (c) 2004 Stefan Farfeleder
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd Aug 7, 2004
+.Dt CIMAG 3
+.Os
+.Sh NAME
+.Nm cimag ,
+.Nm cimagf ,
+.Nm cimagl ,
+.Nm conj ,
+.Nm conjf ,
+.Nm conjl ,
+.Nm creal ,
+.Nm crealf ,
+.Nm creall
+.Nd functions to manipulate complex numbers
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In complex.h
+.Ft double
+.Fn cimag "double complex z"
+.Ft float
+.Fn cimagf "float complex z"
+.Ft long double
+.Fn cimagl "long double complex z"
+.Ft double complex
+.Fn conj "double complex z"
+.Ft float complex
+.Fn conjf "float complex z"
+.Ft long double complex
+.Fn conjl "long double complex z"
+.Ft double
+.Fn creal "double complex z"
+.Ft float
+.Fn crealf "float complex z"
+.Ft long double
+.Fn creall "long double complex z"
+.Sh DESCRIPTION
+Let
+.Sm off
+.Fa a + b * Em i
+.Sm on
+denote the complex number
+.Ar z .
+.Pp
+The
+.Fn cimag
+functions return the imaginary part
+.Fa b .
+.Pp
+The
+.Fn conj
+functions return the complex conjugate
+.Sm off
+.Fa a - b * Em i .
+.Sm on
+.Pp
+The
+.Fn creal
+functions return the real part
+.Fa a .
+.Sh STANDARDS
+The
+.Fn cimag ,
+.Fn conj
+and
+.Fn creal
+functions conform to
+.St -isoC-99 .
+.Sh HISTORY
+The
+.Fn cimag ,
+.Fn conj
+and
+.Fn creal
+functions first appeared in
+.Fx 5.3 .
OpenPOWER on IntegriCloud