OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / sqrt.3
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>
4 .\"
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.
8 .\"
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.
13 .\"
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
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
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)
32 .\"
33 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara
34 .\"         all rights reserved.
35 .\" Translated Mon Jul 15 18:40:00 JST 1996
36 .\"         by Kenji Kajiwara
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>
40 .\"
41 .TH SQRT 3  2008-08-05 ""  "Linux Programmer's Manual"
42 .SH Ì¾Á°
43 sqrt, sqrtf, sqrtl \- Ê¿Êýº¬´Ø¿ô
44 .SH ½ñ¼°
45 .nf
46 .B #include <math.h>
47 .sp
48 .BI "double sqrt(double " x );
49 .br
50 .BI "float sqrtf(float " x );
51 .br
52 .BI "long double sqrtl(long double " x );
53 .fi
54 .sp
55 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
56 .sp
57 .in -4n
58 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
59 .RB ( feature_test_macros (7)
60 »²¾È):
61 .in
62 .sp
63 .ad l
64 .BR sqrtf (),
65 .BR sqrtl ():
66 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
67 .I cc\ -std=c99
68 .ad b
69 .SH ÀâÌÀ
70 .BR sqrt ()
71 ´Ø¿ô¤Ï \fIx\fP ¤ÎÊ¿Êýº¬¤Î¤¦¤ÁÉé¤Ç¤Ê¤¤Êý¤ÎÃͤòÊÖ¤¹¡£
72 .SH ÊÖ¤êÃÍ
73 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
74 .I x
75 ¤ÎÊ¿Êýº¬¤òÊÖ¤¹¡£
76
77 .I x
78 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
79
80 .I x
81 ¤¬ +0 (\-0) ¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
82  
83 .I x
84 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Àµ¤Î̵¸ÂÂ礬ÊÖ¤µ¤ì¤ë¡£
85
86 .I x
87 ¤¬ 0 Ì¤Ëþ¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
88 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
89 .SH ¥¨¥é¡¼
90 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
91 .BR math_error (7)
92 ¤ò»²¾È¤Î¤³¤È¡£
93 .PP
94 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
95 .TP
96 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤¬ 0 Ì¤Ëþ
97 .I errno
98 ¤Ë
99 .B EDOM
100 ¤¬ÀßÄꤵ¤ì¤ë¡£
101 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
102 .RB ( FE_INVALID )
103 ¤¬¾å¤¬¤ë¡£
104 .SH ½àµò
105 C99, POSIX.1-2001.
106 .I double
107 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
108 .SH ´ØÏ¢¹àÌÜ
109 .BR cbrt (3),
110 .BR csqrt (3),
111 .BR hypot (3)