1CSQRT(3) Linux Programmer's Manual CSQRT(3)
2
3
4
6 csqrt, csqrtf, csqrtl - complex square root
7
9 #include <complex.h>
10
11 double complex csqrt(double complex z);
12 float complex csqrtf(float complex z);
13 long double complex csqrtl(long double complex z);
14
15 Link with -lm.
16
18 Calculate the square root of a given complex number, with nonnegative
19 real part, and with a branch cut along the negative real axis. (That
20 means that csqrt(-1+eps*I) will be close to I while csqrt(-1-eps*I)
21 will be close to -I, if eps is a small positive real number.)
22
24 These functions first appeared in glibc in version 2.1.
25
27 C99.
28
30 cabs(3), cexp(3), complex(7)
31
33 This page is part of release 3.25 of the Linux man-pages project. A
34 description of the project, and information about reporting bugs, can
35 be found at http://www.kernel.org/doc/man-pages/.
36
37
38
39 2008-08-11 CSQRT(3)