Man Linux: Main Page and Category List

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

#include<complex.h>doublecomplexclog(doublecomplexz);floatcomplexclogf(floatcomplexz);longdoublecomplexclogl(longdoublecomplexz);Link with-lm.

The logarithmclog() is the inverse function of the exponentialcexp(3). Thus, ify=clog(z), thenz=cexp(y). The imaginary part ofyis chosen in the interval [-pi,pi]. One has: clog(z) = log(cabs(z)) + I * carg(z) Note thatzclose to zero will cause an overflow.

These functions first appeared in glibc in version 2.1.

C99.

cabs(3),cexp(3),clog10(3),complex(7)

This page is part of release 3.24 of the Linuxman-pagesproject. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2008-08-11 CLOG(3)