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/csqrt.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'newlib/libm/complex/csqrt.c') diff --git a/newlib/libm/complex/csqrt.c b/newlib/libm/complex/csqrt.c index 23bd0b046..b144b7c3a 100644 --- a/newlib/libm/complex/csqrt.c +++ b/newlib/libm/complex/csqrt.c @@ -32,6 +32,41 @@ * Marco Atzeri */ +/* +FUNCTION + <>, <>---complex square root + +INDEX + csqrt +INDEX + csqrtf + +ANSI_SYNOPSIS + #include + double complex csqrt(double complex <[z]>); + float complex csqrtf(float complex <[z]>); + + +DESCRIPTION + These functions compute the complex square root of <[z]>, with + a branch cut along the negative real axis. + + <> is identical to <>, except that it performs + its calculations on <>. + +RETURNS + The csqrt functions return the complex square root value, in + the range of the right halfplane (including the imaginary axis). + +PORTABILITY + <> and <> are ISO C99 + +QUICKREF + <> and <> are ISO C99 + +*/ + + #include #include -- cgit v1.2.3