OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / csqrt.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .TH CSQRT 3 2008-08-11 "" "Linux Programmer's Manual"
8 .SH NAME
9 csqrt, csqrtf, csqrtl \- complex square root
10 .SH SYNOPSIS
11 .B #include <complex.h>
12 .sp
13 .BI "double complex csqrt(double complex " z ");"
14 .br
15 .BI "float complex csqrtf(float complex " z ");"
16 .br
17 .BI "long double complex csqrtl(long double complex " z ");"
18 .sp
19 Link with \fI\-lm\fP.
20 .SH DESCRIPTION
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
26 real number.)
27 .SH VERSIONS
28 These functions first appeared in glibc in version 2.1.
29 .SH CONFORMING TO
30 C99.
31 .SH SEE ALSO
32 .BR cabs (3),
33 .BR cexp (3),
34 .BR complex (7)
35 .SH COLOPHON
36 This page is part of release 3.68 of the Linux
37 .I man-pages
38 project.
39 A description of the project,
40 information about reporting bugs,
41 and the latest version of this page,
42 can be found at
43 \%http://www.kernel.org/doc/man\-pages/.