OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / man3 / csqrt.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\"
4 .TH CSQRT 3 2008-08-11 "" "Linux Programmer's Manual"
5 .SH NAME
6 csqrt, csqrtf, csqrtl \- complex square root
7 .SH SYNOPSIS
8 .B #include <complex.h>
9 .sp
10 .BI "double complex csqrt(double complex " z ");"
11 .br
12 .BI "float complex csqrtf(float complex " z ");"
13 .br
14 .BI "long double complex csqrtl(long double complex " z ");"
15 .sp
16 Link with \fI\-lm\fP.
17 .SH DESCRIPTION
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
23 real number.)
24 .SH VERSIONS
25 These functions first appeared in glibc in version 2.1.
26 .SH "CONFORMING TO"
27 C99.
28 .SH "SEE ALSO"
29 .BR cabs (3),
30 .BR cexp (3),
31 .BR complex (7)