1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .TH CSQRT 3 2021-03-22 "" "Linux Programmer's Manual"
9 csqrt, csqrtf, csqrtl \- complex square root
12 .B #include <complex.h>
14 .BI "double complex csqrt(double complex " z ");"
15 .BI "float complex csqrtf(float complex " z ");"
16 .BI "long double complex csqrtl(long double complex " z ");"
21 These functions calculate the complex square root of
23 with a branch cut along the negative real axis.
24 (That means that \fIcsqrt(\-1+eps*I)\fP will be close to I while
25 \fIcsqrt(\-1\-eps*I)\fP will be close to \-I, \fIif eps\fP is a small positive
28 These functions first appeared in glibc in version 2.1.
30 For an explanation of the terms used in this section, see
38 Interface Attribute Value
43 T} Thread safety MT-Safe
49 C99, POSIX.1-2001, POSIX.1-2008.