1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .TH CCOS 3 2021-03-22 "" "Linux Programmer's Manual"
7 ccos, ccosf, ccosl \- complex cosine function
10 .RI ( libm ", " \-lm )
13 .B #include <complex.h>
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 ");"
20 These functions calculate the complex cosine of
23 The complex cosine function is defined as:
26 ccos(z) = (exp(i * z) + exp(\-i * z)) / 2
29 These functions first appeared in glibc in version 2.1.
31 For an explanation of the terms used in this section, see
39 Interface Attribute Value
44 T} Thread safety MT-Safe
50 C99, POSIX.1-2001, POSIX.1-2008.