diff options
Diffstat (limited to 'newlib/libm/complex/carg.c')
-rw-r--r-- | newlib/libm/complex/carg.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/newlib/libm/complex/carg.c b/newlib/libm/complex/carg.c index 502084096..044742034 100644 --- a/newlib/libm/complex/carg.c +++ b/newlib/libm/complex/carg.c @@ -8,6 +8,46 @@ * Marco Atzeri <marco_atzeri@yahoo.it> */ +/* +FUNCTION + <<carg>>, <<cargf>>---argument (phase angle) + +INDEX + carg +INDEX + cargf + +ANSI_SYNOPSIS + #include <complex.h> + double carg(double complex <[z]>); + float cargf(float complex <[z]>); + + +DESCRIPTION + These functions compute the argument (also called phase angle) + of <[z]>, with a branch cut along the negative real axis. + + <<cargf>> is identical to <<carg>>, except that it performs + its calculations on <<floats complex>>. + +RETURNS + @ifnottex + The carg functions return the value of the argument in the + interval [-pi, +pi] + @end ifnottex + @tex + The carg functions return the value of the argument in the + interval [$-\pi$, $+\pi$] + @end tex + +PORTABILITY + <<carg>> and <<cargf>> are ISO C99 + +QUICKREF + <<carg>> and <<cargf>> are ISO C99 + +*/ + #include <complex.h> #include <math.h> |