1csqrt(3)                   Library Functions Manual                   csqrt(3)
2
3
4

NAME

6       csqrt, csqrtf, csqrtl - complex square root
7

LIBRARY

9       Math library (libm, -lm)
10

SYNOPSIS

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

DESCRIPTION

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

ATTRIBUTES

25       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
26       tributes(7).
27
28       ┌────────────────────────────────────────────┬───────────────┬─────────┐
29Interface                                   Attribute     Value   
30       ├────────────────────────────────────────────┼───────────────┼─────────┤
31csqrt(), csqrtf(), csqrtl()                 │ Thread safety │ MT-Safe │
32       └────────────────────────────────────────────┴───────────────┴─────────┘
33

STANDARDS

35       C11, POSIX.1-2008.
36

HISTORY

38       glibc 2.1.  C99, POSIX.1-2001.
39

SEE ALSO

41       cabs(3), cexp(3), complex(7)
42
43
44
45Linux man-pages 6.04              2023-03-30                          csqrt(3)
Impressum