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 These functions calculate the complex square root of z, with a branch
19 cut along the negative real axis. (That means that csqrt(-1+eps*I)
20 will be close to I while csqrt(-1-eps*I) will be close to -I, if eps is
21 a small positive real number.)
22
24 These functions first appeared in glibc in version 2.1.
25
27 For an explanation of the terms used in this section, see at‐
28 tributes(7).
29
30 ┌────────────────────────────┬───────────────┬─────────┐
31 │Interface │ Attribute │ Value │
32 ├────────────────────────────┼───────────────┼─────────┤
33 │csqrt(), csqrtf(), csqrtl() │ Thread safety │ MT-Safe │
34 └────────────────────────────┴───────────────┴─────────┘
35
37 C99, POSIX.1-2001, POSIX.1-2008.
38
40 cabs(3), cexp(3), complex(7)
41
43 This page is part of release 5.10 of the Linux man-pages project. A
44 description of the project, information about reporting bugs, and the
45 latest version of this page, can be found at
46 https://www.kernel.org/doc/man-pages/.
47
48
49
50 2017-09-15 CSQRT(3)