1CLOG(3)                      complex math routines                     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 cexp().
19       Thus, if y = clog(z), then z = cexp(y).  The imaginary  part  of  y  is
20       chosen in the interval [-pi,pi].
21
22       One has clog(z) = log(cabs(z))+I*carg(z).
23
24       Note that z close to zero will cause an overflow.
25

CONFORMING TO

27       C99
28

SEE ALSO

30       cabs(3), cexp(3), clog10(3), complex(7)
31
32
33
34                                  2002-07-28                           CLOG(3)
Impressum