1csqrt(3) Library Functions Manual csqrt(3)
2
3
4
6 csqrt, csqrtf, csqrtl - complex square root
7
9 Math library (libm, -lm)
10
12 #include <complex.h>
13
14 double complex csqrt(double complex z);
15 float complex csqrtf(float complex z);
16 long double complex csqrtl(long double complex z);
17
19 These functions calculate the complex square root of z, with a branch
20 cut along the negative real axis. (That means that csqrt(-1+eps*I)
21 will be close to I while csqrt(-1-eps*I) will be close to -I, if eps is
22 a small positive real number.)
23
25 For an explanation of the terms used in this section, see at‐
26 tributes(7).
27
28 ┌────────────────────────────────────────────┬───────────────┬─────────┐
29 │Interface │ Attribute │ Value │
30 ├────────────────────────────────────────────┼───────────────┼─────────┤
31 │csqrt(), csqrtf(), csqrtl() │ Thread safety │ MT-Safe │
32 └────────────────────────────────────────────┴───────────────┴─────────┘
33
35 C11, POSIX.1-2008.
36
38 glibc 2.1. C99, POSIX.1-2001.
39
41 cabs(3), cexp(3), complex(7)
42
43
44
45Linux man-pages 6.04 2023-03-30 csqrt(3)