]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/csqrt.3
alloca.3: Prevent any misunderstanding about when allocated memory is released
[thirdparty/man-pages.git] / man3 / csqrt.3
CommitLineData
fea681da 1.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2297bf0e 2.\"
38f20bb9 3.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
fea681da 4.\" Distributed under GPL
38f20bb9 5.\" %%%LICENSE_END
fea681da 6.\"
4b8c67d9 7.TH CSQRT 3 2017-09-15 "" "Linux Programmer's Manual"
fea681da
MK
8.SH NAME
9csqrt, csqrtf, csqrtl \- complex square root
10.SH SYNOPSIS
11.B #include <complex.h>
68e4db0a 12.PP
fea681da 13.BI "double complex csqrt(double complex " z ");"
d39541ec 14.br
fea681da 15.BI "float complex csqrtf(float complex " z ");"
d39541ec 16.br
fea681da 17.BI "long double complex csqrtl(long double complex " z ");"
68e4db0a 18.PP
20c58d70 19Link with \fI\-lm\fP.
fea681da 20.SH DESCRIPTION
b0b0c4db
MK
21These functions calculate the complex square root of
22.IR z ,
fea681da 23with a branch cut along the negative real axis.
658670de
MK
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
fea681da 26real number.)
f0d7ce1d
MK
27.SH VERSIONS
28These functions first appeared in glibc in version 2.1.
551dcfd5
MS
29.SH ATTRIBUTES
30For an explanation of the terms used in this section, see
31.BR attributes (7).
32.TS
33allbox;
34lbw27 lb lb
35l l l.
36Interface Attribute Value
37T{
38.BR csqrt (),
39.BR csqrtf (),
40.BR csqrtl ()
41T} Thread safety MT-Safe
42.TE
847e0d88 43.sp 1
47297adb 44.SH CONFORMING TO
9a74e018 45C99, POSIX.1-2001, POSIX.1-2008.
47297adb 46.SH SEE ALSO
fea681da
MK
47.BR cabs (3),
48.BR cexp (3),
a8bda636 49.BR complex (7)