1 .\" Copyright (c) 2011 Murray Stokely <murray@FreeBSD.org>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd "complex arithmetic"
38 These functions support complex arithmetic in the C math library.
39 .Sh "LIST OF FUNCTIONS"
46 appended to the name and a
47 .Vt "long double complex"
54 .Vt "long double complex"
57 .Fn cabs "double complex z"
60 .Fn cabsf "float complex z"
63 .Fn cabsl "long double complex z" ,
66 .Bl -column "csqrt" "complex absolute value (i.e. norm, modulus, magnitude)"
67 .Em "Name Description"
69 .\" Section 7.3.5 - 7.3.7 of ISO C99 standard unimplemented, see BUGS
70 .\" Section 7.3.8 of ISO C99 standard
71 .Ss Absolute-value Functions
73 cabs complex absolute value (i.e. norm, modulus, magnitude)
74 csqrt complex square root
76 .Ss Exponential Function
78 cexp exponential base e
80 .\" Section 7.3.9 of ISO C99 standard
81 .Ss Manipulation Functions
83 carg compute the argument (i.e. phase angle)
84 cimag compute the imaginary part
85 conj compute the complex conjugate
86 cproj compute projection onto Riemann sphere
87 creal compute the real part
89 .\" Section 7.3.5-6 of ISO C99 standard
90 .Ss Trigonometric and Hyperbolic Functions
93 ccosh hyperbolic cosine
97 ctanh hyperbolic tangent
105 .%T "ISO/IEC 9899:TC3"
106 .%U http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
111 functions described here conform to
114 The inverse trigonometric and hyperbolic functions
124 The logarithmic functions