1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .TH CLOG 3 2021-03-22 "" "Linux Programmer's Manual"
9 clog, clogf, clogl \- natural logarithm of a complex number
12 .B #include <complex.h>
14 .BI "double complex clog(double complex " z );
15 .BI "float complex clogf(float complex " z );
16 .BI "long double complex clogl(long double complex " z );
21 These functions calculate the complex natural logarithm of
23 with a branch cut along the negative real axis.
27 is the inverse function of the exponential
29 Thus, if \fIy\ =\ clog(z)\fP, then \fIz\ =\ cexp(y)\fP.
32 is chosen in the interval [\-pi,pi].
37 clog(z) = log(cabs(z)) + I * carg(z)
42 close to zero will cause an overflow.
44 These functions first appeared in glibc in version 2.1.
46 For an explanation of the terms used in this section, see
54 Interface Attribute Value
59 T} Thread safety MT-Safe
65 C99, POSIX.1-2001, POSIX.1-2008.