From bf5300eaee04b5e143dea58e922bc6ae260197dd Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 18 Oct 2010 22:40:24 +0000 Subject: 2010-10-18 Marco Atzeri * libm/Makefile.am: added complex functions documentation * libm/libm.texinfo: ditto * libm/complex/Makefile.am: Ditto * libm/complex/complex.tex: Ditto * libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c, casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c, cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c, csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto * libm/Makefile.in: Regenerate * libm/complex/Makefile.in: Ditto --- newlib/libm/complex/catan.c | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'newlib/libm/complex/catan.c') diff --git a/newlib/libm/complex/catan.c b/newlib/libm/complex/catan.c index 9e29b128e..2cb91bb08 100644 --- a/newlib/libm/complex/catan.c +++ b/newlib/libm/complex/catan.c @@ -32,6 +32,57 @@ * Marco Atzeri */ +/* +FUNCTION + <>, <>---complex arc tangent + +INDEX + catan +INDEX + catanf + +ANSI_SYNOPSIS + #include + double complex catan(double complex <[z]>); + float complex catanf(float complex <[z]>); + + +DESCRIPTION + @ifnottex + These functions compute the complex arc tangent of <[z]>, + with branch cuts outside the interval [-i, +i] along the + imaginary axis. + @end ifnottex + @tex + These functions compute the complex arc tangent of <[z]>, + with branch cuts outside the interval [$-i$, $+i$] along the + imaginary axis. + @end tex + + <> is identical to <>, except that it performs + its calculations on <>. + +RETURNS + @ifnottex + These functions return the complex arc tangent value, in the range + of a strip mathematically unbounded along the imaginary axis + and in the interval [-pi/2, +pi/2] along the real axis. + @end ifnottex + @tex + These functions return the complex arc tangent, in the range + of a strip mathematically unbounded along the imaginary axis + and in the interval [$-\pi/2$, $+\pi/2$] along the real axis. + @end tex + +PORTABILITY + <> and <> are ISO C99 + +QUICKREF + <> and <> are ISO C99 + +*/ + + #include #include #include "cephes_subr.h" -- cgit v1.2.3