1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" References consulted:
26 .\" Linux libc source code
27 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-07-27 by Walter Harms
31 .\" (walter.harms@informatik.uni-oldenburg.de)
33 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara
34 .\" all rights reserved.
35 .\" Translated Mon Jul 15 18:40:00 JST 1996
37 .\" Proof Reading: Takashi Yoshino
38 .\" Updated Sun Sep 14 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
39 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .TH SQRT 3 2010-09-20 "" "Linux Programmer's Manual"
43 sqrt, sqrtf, sqrtl \- 平方根関数
48 .BI "double sqrt(double " x );
50 .BI "float sqrtf(float " x );
52 .BI "long double sqrtl(long double " x );
55 .\"O Link with \fI\-lm\fP.
59 .\"O Feature Test Macro Requirements for glibc (see
60 .\"O .BR feature_test_macros (7)):
62 .RB ( feature_test_macros (7)
70 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
71 _POSIX_C_SOURCE\ >=\ 200112L;
81 .\"O function returns the nonnegative square root of \fIx\fP.
83 関数は \fIx\fP の平方根のうち負でない方の値を返す。
84 .\"O .SH "RETURN VALUE"
86 .\"O On success, these functions return the square root of
94 .\"O is a NaN, a NaN is returned.
100 .\"O is +0 (\-0), +0 (\-0) is returned.
102 が +0 (\-0) の場合、+0 (\-0) が返される。
106 .\"O is positive infinity, positive infinity is returned.
108 が正の無限大の場合、正の無限大が返される。
112 .\"O is less than \-0,
113 .\"O a domain error occurs,
114 .\"O and a NaN is returned.
116 が 0 未満の場合、領域エラー (domain error) が発生し、
121 .\"O .BR math_error (7)
122 .\"O for information on how to determine whether an error has occurred
123 .\"O when calling these functions.
124 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
128 .\"O The following errors can occur:
131 .\"O Domain error: \fIx\fP less than \-0
132 領域エラー (domain error): \fIx\fP が 0 未満
136 .\"O An invalid floating-point exception
137 .\"O .RB ( FE_INVALID )
146 .\"O .SH "CONFORMING TO"
149 .\"O The variant returning
151 .\"O also conforms to
152 .\"O SVr4, 4.3BSD, C89.
154 版の関数は SVr4, 4.3BSD, C89 にも準拠している。