]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/clog.3
Link to new location
[thirdparty/man-pages.git] / man3 / clog.3
CommitLineData
fea681da
MK
1.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2.\" Distributed under GPL
3.\"
4.TH CLOG 3 2002-07-28 "" "complex math routines"
5.SH NAME
6clog, clogf, clogl \- natural logarithm of a complex number
7.SH SYNOPSIS
8.B #include <complex.h>
9.sp
10.BI "double complex clog(double complex " z );
d39541ec 11.br
fea681da 12.BI "float complex clogf(float complex " z );
d39541ec 13.br
fea681da
MK
14.BI "long double complex clogl(long double complex " z );
15.sp
16Link with \-lm.
17.SH DESCRIPTION
18The logarithm clog is the inverse function of the exponential cexp.
19Thus, if y = clog(z), then z = cexp(y).
8c383102 20The imaginary part of y is chosen in the interval [\-pi,pi].
fea681da
MK
21.LP
22One has clog(z) = log(cabs(z))+I*carg(z).
23.LP
24Please note that z close to zero will cause an overflow.
25.SH "CONFORMING TO"
26C99
27.SH "SEE ALSO"
28.BR cabs (3),
29.BR cexp (3),
30.BR clog10 (3),
31.BR complex (5)