Computes complex square roots.
#include <complex.h> double complex csqrt (z) double complex z; float complex csqrtf (z) float complex z; long double complex csqrtl (z) long double complex z;
The csqrt, csqrtf, and csqrtl subroutines compute the complex square root of the value specified by the z parameter, with a branch cut along the negative real axis.
z | Specifies the value to be computed. |
The csqrt, csqrtf, and csqrtl subroutines return the complex square root value, in the range of the right half-plane (including the imaginary axis).
cabs, cabsf, or cabsl Subroutine, cpow, cpowf, or cpowl Subroutine