Command:

CLOG(3) Linux Programmer's Manual CLOG(3)NAMEclog, clogf, clogl - natural logarithm of a complex numberSYNOPSIS#include<complex.h>doublecomplexclog(doublecomplexz);floatcomplexclogf(floatcomplexz);longdoublecomplexclogl(longdoublecomplexz);Link with-lm.DESCRIPTIONThe logarithmclog() is the inverse function of the exponential cexp(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.VERSIONSThese functions first appeared in glibc in version 2.1.CONFORMINGTOC99.SEEALSOcabs(3), cexp(3), clog10(3), complex(7)COLOPHONThis page is part of release 3.22 of the Linuxman-pagesproject. A description of the project, and informa- tion about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2008-08-11 CLOG(3)