C Programming/complex.h/csqrt

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Prototypes[edit | edit source]

double complex csqrt(double complex z);
float complex csqrtf(float complex z);
long double complex csqrtl(long double complex z);

Description[edit | edit source]

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