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/cimag.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'newlib/libm/complex/cimag.c') diff --git a/newlib/libm/complex/cimag.c b/newlib/libm/complex/cimag.c index 86068ba4e..1d2d77414 100644 --- a/newlib/libm/complex/cimag.c +++ b/newlib/libm/complex/cimag.c @@ -8,6 +8,39 @@ * Marco Atzeri */ +/* +FUNCTION + <>, <>---imaginary part + +INDEX + cimag +INDEX + cimagf + +ANSI_SYNOPSIS + #include + double cimag(double complex <[z]>); + float cimagf(float complex <[z]>); + + +DESCRIPTION + These functions compute the imaginary part of <[z]>. + + <> is identical to <>, except that it performs + its calculations on <>. + +RETURNS + The cimag functions return the imaginary part value (as a real). + +PORTABILITY + <> and <> are ISO C99 + +QUICKREF + <> and <> are ISO C99 + +*/ + + #include #include "../common/fdlibm.h" -- cgit v1.2.3