OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man3 / erfc.3
1 .\" Copyright 2008, Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
25 .\"         all rights reserved.
26 .\" Translated 2008-09-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
27 .\" 
28 .\"WORD:        subnormal       ÈóÀµµ¬²½¤Î
29 .\" 
30 .TH ERFC 3  2008-08-05 "GNU" "Linux Programmer's Manual"
31 .\"O .SH NAME
32 .SH Ì¾Á°
33 .\"O erfc, erfcf, erfcl \- complementary error function
34 erfc, erfcf, erfcl \- ÁêÊä¸íº¹´Ø¿ô
35 .\"O .SH SYNOPSIS
36 .SH ½ñ¼°
37 .nf
38 .B #include <math.h>
39
40 .BI "double erfc(double " x );
41 .BI "float erfcf(float " x );
42 .BI "long double erfcl(long double " x );
43
44 .fi
45 .\"O Link with \fI\-lm\fP.
46 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
47 .sp
48 .in -4n
49 .\"O Feature Test Macro Requirements for glibc (see
50 .\"O .BR feature_test_macros (7)):
51 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
52 .RB ( feature_test_macros (7)
53 »²¾È):
54 .in
55 .sp
56 .ad l
57 .BR erfc ():
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE; or
59 .I cc\ -std=c99
60 .br
61 .BR erfcf (),
62 .BR erfcl ():
63 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600|| _ISOC99_SOURCE; or
64 .I cc\ -std=c99
65 .ad b
66 .\"O .SH DESCRIPTION
67 .SH ÀâÌÀ
68 .\"O The
69 .\"O .BR erfc ()
70 .\"O function returns the complementary error function of
71 .\"O .IR x ,
72 .\"O that is, 1.0 \- erf(x).
73 .BR erfc ()
74 ´Ø¿ô¤Ï
75 .I x
76 ¤ÎÁêÊä¸íº¹´Ø¿ô¡¢¤Ä¤Þ¤ê 1.0 \- erf(x) ¤òÊÖ¤¹¡£
77 .\"O .SH RETURN VALUE
78 .SH ÊÖ¤êÃÍ
79 .\"O On success, these functions return the complementary error function of
80 .\"O .IR x ,
81 .\"O a value in the range [0,2].
82 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
83 .I x
84 ¤ÎÁêÊä¸íº¹´Ø¿ô¤òÊÖ¤¹¡£
85 ÊÖ¤êÃͤϠ[0,2] ¤ÎÈϰϤȤʤ롣
86
87 .\"O If
88 .\"O .I x
89 .\"O is a NaN, a NaN is returned.
90 .I x
91 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
92
93 .\"O If
94 .\"O .I x
95 .\"O is +0 or \-0, 1 is returned.
96 .I x
97 ¤¬ +0 ¤« \-0 ¤Î¾ì¹ç¡¢1 ¤¬ÊÖ¤µ¤ì¤ë¡£
98
99 .\"O If
100 .\"O .I x
101 .\"O is positive infinity,
102 .\"O +0 is returned.
103 .I x
104 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+0 ¤¬ÊÖ¤µ¤ì¤ë¡£
105
106 .\"O If
107 .\"O .I x
108 .\"O is negative infinity,
109 .\"O +2 is returned.
110 .I x
111 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+2 ¤¬ÊÖ¤µ¤ì¤ë¡£
112
113 .\"O If the function result underflows and produces an unrepresentable value,
114 .\"O the return value is 0.0.
115 ´Ø¿ô¤Î·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤·¡¢É½¸½¤Ç¤­¤Ê¤¤ÃͤȤʤë¾ì¹ç¤Ï¡¢
116 ÊÖ¤êÃͤϠ0.0 ¤È¤Ê¤ë¡£
117
118 .\"O If the function result underflows but produces a representable
119 .\"O (i.e., subnormal) value,
120 .\"O .\" e.g., erfc(27) on x86-32
121 .\"O that value is returned, and
122 .\"O a range error occurs.
123 ´Ø¿ô¤Î·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤¹¤ë¤¬¡¢
124 ɽ¸½¤Ç¤­¤ëÃÍ (¤Ä¤Þ¤êÈóÀµµ¬²½¿ô (subnormal)) ¤È¤Ê¤ë¾ì¹ç¤Ï¡¢
125 .\" Î㤨¤Ð x86-32 ¤Ç¤Î erfc(27)
126 ¤½¤ÎÃͤ¬ÊÖ¤µ¤ì¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤¹¤ë¡£
127 .\"O .SH ERRORS
128 .SH ¥¨¥é¡¼
129 .\"O See
130 .\"O .BR math_error (7)
131 .\"O for information on how to determine whether an error has occurred
132 .\"O when calling these functions.
133 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
134 .BR math_error (7)
135 ¤ò»²¾È¤Î¤³¤È¡£
136 .PP
137 .\"O The following errors can occur:
138 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
139 .TP
140 .\"O Range error: result underflow (result is subnormal)
141 ÈÏ°Ï¥¨¥é¡¼: ·ë²Ì¤Î¥¢¥ó¥À¡¼¥Õ¥í¡¼ (·ë²Ì¤¬ÈóÀµµ¬²½¿ô)
142 .\" .I errno
143 .\" is set to
144 .\" .BR ERANGE .
145 .\"O An underflow floating-point exception
146 .\"O .RB ( FE_UNDERFLOW )
147 .\"O is raised.
148 ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
149 .RB ( FE_UNDERFLOW )
150 ¤¬¾å¤¬¤ë¡£
151 .PP
152 .\"O These functions do not set
153 .\"O .IR errno .
154 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
155 .I errno
156 ¤òÀßÄꤷ¤Ê¤¤¡£
157 .\" FIXME . Is it intentional that these functions do not set errno?
158 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
159 .\"O .SH "CONFORMING TO"
160 .SH ½àµò
161 C99, POSIX.1-2001.
162 .\"O The variant returning
163 .\"O .I double
164 .\"O also conforms to
165 .\"O SVr4, 4.3BSD.
166 .I double
167 ÈǤδؿô¤Ï SVr4, 4.3BSD ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
168 .\"O .SH NOTES
169 .SH Ãí°Õ
170 .\"O The
171 .\"O .BR erfc ()
172 .\"O functions are provided to avoid the loss accuracy that
173 .\"O would occur for the calculation 1-erf(x) for large values of
174 .\"O .IR x
175 .\"O (for which the value of erf(x) approaches 1).
176 .BR erfc ()
177 ´Ø¿ô¤¬Ä󶡤µ¤ì¤Æ¤¤¤ë¤Î¤Ï¡¢
178 .I x
179 ¤¬Â礭¤ÊÃͤξì¹ç¤Ë (erf(x) ¤ÎÃͤϠ1 ¤Ë¶áÉÕ¤¤¤Æ¤¤¤¯¤³¤È¤Ç)
180 1-erf(x) ¤Î·×»»¤Ë¤ª¤¤¤ÆÀºÅÙ¤¬¼º¤ï¤ì¤ë¤Î¤òÈò¤±¤ë¤¿¤á¤Ç¤¢¤ë¡£
181 .\"O .SH "SEE ALSO"
182 .SH ´ØÏ¢¹àÌÜ
183 .BR cerf (3),
184 .BR erf (3),
185 .BR exp (3)