1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH CSQRT 3 2008-08-11 "" "Linux Programmer's Manual"
6 csqrt, csqrtf, csqrtl \- complex square root
8 .B #include <complex.h>
10 .BI "double complex csqrt(double complex " z ");"
12 .BI "float complex csqrtf(float complex " z ");"
14 .BI "long double complex csqrtl(long double complex " z ");"
18 Calculate the square root of a given complex number,
19 with nonnegative real part, and
20 with a branch cut along the negative real axis.
21 (That means that \fIcsqrt(\-1+eps*I)\fP will be close to I while
22 \fIcsqrt(\-1\-eps*I)\fP will be close to \-I, \fIif eps\fP is a small positive
25 These functions first appeared in glibc in version 2.1.