]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/ccos.3
b333bb839d51937f073e7b166c82ad93190e30e7
[thirdparty/man-pages.git] / man3 / ccos.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
4 .\"
5 .TH CCOS 3 2021-03-22 "" "Linux Programmer's Manual"
6 .SH NAME
7 ccos, ccosf, ccosl \- complex cosine function
8 .SH LIBRARY
9 Math library
10 .RI ( libm ", " \-lm )
11 .SH SYNOPSIS
12 .nf
13 .B #include <complex.h>
14 .PP
15 .BI "double complex ccos(double complex " z ");"
16 .BI "float complex ccosf(float complex " z ");"
17 .BI "long double complex ccosl(long double complex " z ");"
18 .fi
19 .SH DESCRIPTION
20 These functions calculate the complex cosine of
21 .IR z .
22 .PP
23 The complex cosine function is defined as:
24 .PP
25 .nf
26 ccos(z) = (exp(i * z) + exp(\-i * z)) / 2
27 .fi
28 .SH VERSIONS
29 These functions first appeared in glibc in version 2.1.
30 .SH ATTRIBUTES
31 For an explanation of the terms used in this section, see
32 .BR attributes (7).
33 .ad l
34 .nh
35 .TS
36 allbox;
37 lbx lb lb
38 l l l.
39 Interface Attribute Value
40 T{
41 .BR ccos (),
42 .BR ccosf (),
43 .BR ccosl ()
44 T} Thread safety MT-Safe
45 .TE
46 .hy
47 .ad
48 .sp 1
49 .SH CONFORMING TO
50 C99, POSIX.1-2001, POSIX.1-2008.
51 .SH SEE ALSO
52 .BR cabs (3),
53 .BR cacos (3),
54 .BR csin (3),
55 .BR ctan (3),
56 .BR complex (7)