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 2008-08-11 "" "Linux Programmer's Manual"
9 csqrt, csqrtf, csqrtl \- complex square root
11 .B #include <complex.h>
13 .BI "double complex csqrt(double complex " z ");"
15 .BI "float complex csqrtf(float complex " z ");"
17 .BI "long double complex csqrtl(long double complex " z ");"
21 Calculate the square root of a given complex number,
22 with nonnegative real part, and
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.