1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH CLOG 3 2008-08-11 "" "Linux Programmer's Manual"
6 clog, clogf, clogl \- natural logarithm of a complex number
8 .B #include <complex.h>
10 .BI "double complex clog(double complex " z );
12 .BI "float complex clogf(float complex " z );
14 .BI "long double complex clogl(long double complex " z );
20 is the inverse function of the exponential
22 Thus, if \fIy\ =\ clog(z)\fP, then \fIz\ =\ cexp(y)\fP.
25 is chosen in the interval [\-pi,pi].
30 clog(z) = log(cabs(z)) + I * carg(z)
35 close to zero will cause an overflow.
37 These functions first appeared in glibc in version 2.1.