7.3.8.3 The csqrt functions

Synopsis

1

#include <complex.h>
double complex csqrt(double complex z);
float complex csqrtf(float complex z);
long double complex csqrtl(long double complex z);

Description

2

The csqrt functions compute the complex square root of z, with a branch cut along the negative real axis.

Returns

3

The csqrt functions return the complex square root value, in the range of the right half- plane (including the imaginary axis).