1ccos(3) Library Functions Manual ccos(3)
2
3
4
6 ccos, ccosf, ccosl - complex cosine function
7
9 Math library (libm, -lm)
10
12 #include <complex.h>
13
14 double complex ccos(double complex z);
15 float complex ccosf(float complex z);
16 long double complex ccosl(long double complex z);
17
19 These functions calculate the complex cosine of z.
20
21 The complex cosine function is defined as:
22
23 ccos(z) = (exp(i * z) + exp(-i * z)) / 2
24
26 For an explanation of the terms used in this section, see at‐
27 tributes(7).
28
29 ┌────────────────────────────────────────────┬───────────────┬─────────┐
30 │Interface │ Attribute │ Value │
31 ├────────────────────────────────────────────┼───────────────┼─────────┤
32 │ccos(), ccosf(), ccosl() │ Thread safety │ MT-Safe │
33 └────────────────────────────────────────────┴───────────────┴─────────┘
34
36 C11, POSIX.1-2008.
37
39 glibc 2.1. C99, POSIX.1-2001.
40
42 cabs(3), cacos(3), csin(3), ctan(3), complex(7)
43
44
45
46Linux man-pages 6.04 2023-03-30 ccos(3)