diff options
Diffstat (limited to 'newlib/libm/complex/csqrt.c')
-rw-r--r-- | newlib/libm/complex/csqrt.c | 35 |
1 files changed, 35 insertions, 0 deletions
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 <marco_atzeri@yahoo.it> */ +/* +FUNCTION + <<csqrt>>, <<csqrtf>>---complex square root + +INDEX + csqrt +INDEX + csqrtf + +ANSI_SYNOPSIS + #include <complex.h> + 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. + + <<csqrtf>> is identical to <<csqrt>>, except that it performs + its calculations on <<floats complex>>. + +RETURNS + The csqrt functions return the complex square root value, in + the range of the right halfplane (including the imaginary axis). + +PORTABILITY + <<csqrt>> and <<csqrtf>> are ISO C99 + +QUICKREF + <<csqrt>> and <<csqrtf>> are ISO C99 + +*/ + + #include <complex.h> #include <math.h> |