Debian Codegraph @

upstream/debian-unstable/man3/clog10.3

raw
1 '\" t
2 .\" Copyright 2002, Walter Harms <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-1.0-or-later
6 .\"
7 .TH clog10 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 clog10, clog10f, clog10l \- base-10 logarithm of a complex number
10 .SH LIBRARY
11 Math library
12 .RI ( libm ,\~ \-lm )
13 .SH SYNOPSIS
14 .nf
15 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
16 .B #include <complex.h>
17 .P
18 .BI "double complex clog10(double complex " z );
19 .BI "float complex clog10f(float complex " z );
20 .BI "long double complex clog10l(long double complex " z );
21 .fi
22 .SH DESCRIPTION
23 The call
24 .I clog10(z)
25 is equivalent to:
26 .P
27 .in +4n
28 .EX
29 clog(z)/log(10)
30 .EE
31 .in
32 .P
33 or equally:
34 .P
35 .in +4n
36 .EX
37 log10(cabs(c)) + I * carg(c) / log(10)
38 .EE
39 .in
40 .P
41 The other functions perform the same task for
42 .I float
43 and
44 .IR "long double" .
45 .P
46 Note that
47 .I z
48 close to zero will cause an overflow.
49 .SH ATTRIBUTES
50 For an explanation of the terms used in this section, see
51 .BR attributes (7).
52 .TS
53 allbox;
54 lbx lb lb
55 l l l.
56 Interface Attribute Value
57 T{
58 .na
59 .nh
60 .BR clog10 (),
61 .BR clog10f (),
62 .BR clog10l ()
63 T} Thread safety MT-Safe
64 .TE
65 .SH STANDARDS
66 GNU.
67 .SH HISTORY
68 glibc 2.1.
69 .P
70 The identifiers are reserved for future use in C99 and C11.
71 .SH SEE ALSO
72 .BR cabs (3),
73 .BR cexp (3),
74 .BR clog (3),
75 .BR clog2 (3),
76 .BR complex (7)