From bef549378908be95fc29754676623b4860eaa0b5 Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Sat, 7 Aug 2004 23:03:36 +0000 Subject: [PATCH] Add man pages for the cimag(), conj() and creal() functions. --- lib/msun/Makefile | 7 ++- lib/msun/man/cimag.3 | 102 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 lib/msun/man/cimag.3 diff --git a/lib/msun/Makefile b/lib/msun/Makefile index 73d7475d1521..efb75c97666a 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 000000000000..8fe3cc4afec8 --- /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 .