1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .TH csqrt 3 (date) "Linux man-pages (unreleased)"
7 csqrt, csqrtf, csqrtl \- complex square root
10 .RI ( libm ", " \-lm )
13 .B #include <complex.h>
15 .BI "double complex csqrt(double complex " z );
16 .BI "float complex csqrtf(float complex " z );
17 .BI "long double complex csqrtl(long double complex " z );
20 These functions calculate the complex square root of
22 with a branch cut along the negative real axis.
23 (That means that \fIcsqrt(\-1+eps*I)\fP will be close to I while
24 \fIcsqrt(\-1\-eps*I)\fP will be close to \-I, \fIif eps\fP is a small positive
27 These functions first appeared in glibc in version 2.1.
29 For an explanation of the terms used in this section, see
37 Interface Attribute Value
42 T} Thread safety MT-Safe
48 C99, POSIX.1-2001, POSIX.1-2008.