|CSQRT(3)||Library Functions Manual||CSQRT(3)|
csqrtl — complex square
long double complex
double complex z);
If z = x + iy, then
Re csqrt(z) = [ (|z| + x) / 2 ]^(1/2). Im csqrt(z) = [ (|z| - x) / 2 ]^(1/2).
Note that -csqrt(z) is also a square root of z. The root chosen is always in the right half plane and Im csqrt(z) has the same sign as y.
functions return the complex square root of z.
functions conform to ISO/IEC 9899:1999
|June 5, 2013||OpenBSD-current|