1CLOG10(3) Linux Programmer's Manual CLOG10(3)
2
3
4
6 clog10, clog10f, clog10l - base-10 logarithm of a complex number
7
9 #define _GNU_SOURCE /* See feature_test_macros(7) */
10 #include <complex.h>
11
12 double complex clog10(double complex z);
13 float complex clog10f(float complex z);
14 long double complex clog10l(long double complex z);
15
16 Link with -lm.
17
19 The call clog10(z) is equivalent to:
20
21 clog(z)/log(10)
22
23 or equally:
24
25 log10(cabs(c)) + I * carg(c) / log(10)
26
27 The other functions perform the same task for float and long double.
28
29 Note that z close to zero will cause an overflow.
30
32 These functions first appeared in glibc in version 2.1.
33
35 For an explanation of the terms used in this section, see at‐
36 tributes(7).
37
38 ┌────────────────────────────────────────────┬───────────────┬─────────┐
39 │Interface │ Attribute │ Value │
40 ├────────────────────────────────────────────┼───────────────┼─────────┤
41 │clog10(), clog10f(), clog10l() │ Thread safety │ MT-Safe │
42 └────────────────────────────────────────────┴───────────────┴─────────┘
43
45 These functions are GNU extensions. The identifiers are reserved for
46 future use in C99 and C11.
47
49 cabs(3), cexp(3), clog(3), clog2(3), complex(7)
50
52 This page is part of release 5.13 of the Linux man-pages project. A
53 description of the project, information about reporting bugs, and the
54 latest version of this page, can be found at
55 https://www.kernel.org/doc/man-pages/.
56
57
58
59 2021-03-22 CLOG10(3)