]>
Commit | Line | Data |
---|---|---|
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 |
9 | csqrt, 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 | 19 | Link with \fI\-lm\fP. |
fea681da | 20 | .SH DESCRIPTION |
b0b0c4db MK |
21 | These functions calculate the complex square root of |
22 | .IR z , | |
fea681da | 23 | with 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 | 26 | real number.) |
f0d7ce1d MK |
27 | .SH VERSIONS |
28 | These functions first appeared in glibc in version 2.1. | |
551dcfd5 MS |
29 | .SH ATTRIBUTES |
30 | For an explanation of the terms used in this section, see | |
31 | .BR attributes (7). | |
32 | .TS | |
33 | allbox; | |
34 | lbw27 lb lb | |
35 | l l l. | |
36 | Interface Attribute Value | |
37 | T{ | |
38 | .BR csqrt (), | |
39 | .BR csqrtf (), | |
40 | .BR csqrtl () | |
41 | T} Thread safety MT-Safe | |
42 | .TE | |
847e0d88 | 43 | .sp 1 |
47297adb | 44 | .SH CONFORMING TO |
9a74e018 | 45 | C99, 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) |