.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
-.\" and Copyright (C) 2011 Michael Kerrisk <mtk.manpages@gamil.com>
+.\" and Copyright (C) 2011 Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
.\" Distributed under GPL
catan, catanf, catanl \- complex arc tangents
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex catan(double complex " z );
.br
.BI "float complex catanf(float complex " z );
.br
.BI "long double complex catanl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc tangent of
.IR z .
If \fIy\ =\ catan(z)\fP, then \fIz\ =\ ctan(y)\fP.
The real part of y is chosen in the interval [\-pi/2,pi/2].
-.LP
+.PP
One has:
+.PP
.nf
-
catan(z) = (clog(1 + i * z) \- clog(1 \- i * z)) / (2 * i)
.fi
.SH VERSIONS
.SH CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008.
.SH EXAMPLE
-.nf
+.EX
/* Link with "\-lm" */
#include <complex.h>
exit(EXIT_SUCCESS);
}
-.fi
+.EE
.SH SEE ALSO
.BR ccos (3),
.BR clog (3),