diff options
Diffstat (limited to 'newlib/libm/complex/cabs.c')
-rw-r--r-- | newlib/libm/complex/cabs.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/newlib/libm/complex/cabs.c b/newlib/libm/complex/cabs.c index eb63669..2750fab 100644 --- a/newlib/libm/complex/cabs.c +++ b/newlib/libm/complex/cabs.c @@ -8,6 +8,40 @@ * Marco Atzeri <marco_atzeri@yahoo.it> */ +/* +FUNCTION + <<cabs>>, <<cabsf>>---complex absolute-value + +INDEX + cabs +INDEX + cabsf + +ANSI_SYNOPSIS + #include <complex.h> + double cabs(double complex <[z]>); + float cabsf(float complex <[z]>); + + +DESCRIPTION + These functions compute compute the complex absolute value + (also called norm, modulus, or magnitude) of <[z]>. + + <<cabsf>> is identical to <<cabs>>, except that it performs + its calculations on <<floats complex>>. + +RETURNS + The cabs functions return the complex absolute value. + +PORTABILITY + <<cabs>> and <<cabsf>> are ISO C99 + +QUICKREF + <<cabs>> and <<cabsf>> are ISO C99 + +*/ + + #include <complex.h> #include <math.h> |