diff options
Diffstat (limited to 'newlib/libm/complex/cimag.c')
-rw-r--r-- | newlib/libm/complex/cimag.c | 33 |
1 files changed, 33 insertions, 0 deletions
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 <marco_atzeri@yahoo.it> */ +/* +FUNCTION + <<cimag>>, <<cimagf>>---imaginary part + +INDEX + cimag +INDEX + cimagf + +ANSI_SYNOPSIS + #include <complex.h> + double cimag(double complex <[z]>); + float cimagf(float complex <[z]>); + + +DESCRIPTION + These functions compute the imaginary part of <[z]>. + + <<cimagf>> is identical to <<cimag>>, except that it performs + its calculations on <<floats complex>>. + +RETURNS + The cimag functions return the imaginary part value (as a real). + +PORTABILITY + <<cimag>> and <<cimagf>> are ISO C99 + +QUICKREF + <<cimag>> and <<cimagf>> are ISO C99 + +*/ + + #include <complex.h> #include "../common/fdlibm.h" |