NAME
csqrt, csqrtf, csqrtl - complex square root
SYNOPSIS
#include <complex.h>
I double complex csqrt(double complex z );
I float complex csqrtf(float complex z );
I long double complex csqrtl(long double complex z );
Link with -lm.
DESCRIPTION
Calculate the square root of a given complex number,
with non-negative real part, and
with a branch cut along the negative real axis.
(That means that csqrt(-1+eps*I) will be close to I while
csqrt(-1-eps*I) will be close to -I, if eps is a small positive
real number.)
CONFORMING TO
C99
SEE ALSO