1CLOG(3)                    Linux Programmer's Manual                   CLOG(3)
2
3
4

NAME

6       clog, clogf, clogl - natural logarithm of a complex number
7

SYNOPSIS

9       #include <complex.h>
10
11       double complex clog(double complex z);
12       float complex clogf(float complex z);
13       long double complex clogl(long double complex z);
14
15       Link with -lm.
16

DESCRIPTION

18       The  logarithm  clog()  is  the  inverse  function  of  the exponential
19       cexp(3).  Thus, if y = clog(z), then z = cexp(y).  The  imaginary  part
20       of y is chosen in the interval [-pi,pi].
21
22       One has:
23
24           clog(z) = log(cabs(z)) + I * carg(z)
25
26       Note that z close to zero will cause an overflow.
27

VERSIONS

29       These functions first appeared in glibc in version 2.1.
30

CONFORMING TO

32       C99.
33

SEE ALSO

35       cabs(3), cexp(3), clog10(3), clog2(3), complex(7)
36

COLOPHON

38       This  page  is  part of release 3.53 of the Linux man-pages project.  A
39       description of the project, and information about reporting  bugs,  can
40       be found at http://www.kernel.org/doc/man-pages/.
41
42
43
44                                  2008-08-11                           CLOG(3)
Impressum