OSDN Git Service

(split) LDP v3.30, v3.31 の定型的な変更内容を反映。
[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  2010-09-20 "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 .RS 4
59 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
60 _POSIX_C_SOURCE\ >=\ 200112L;
61 .br
62 or
63 .I cc\ -std=c99
64 .RE
65 .br
66 .BR erfcf (),
67 .BR erfcl ():
68 .RS 4
69 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
70 _POSIX_C_SOURCE\ >=\ 200112L;
71 .br
72 or
73 .I cc\ -std=c99
74 .RE
75 .ad b
76 .\"O .SH DESCRIPTION
77 .SH ÀâÌÀ
78 .\"O The
79 .\"O .BR erfc ()
80 .\"O function returns the complementary error function of
81 .\"O .IR x ,
82 .\"O that is, 1.0 \- erf(x).
83 .BR erfc ()
84 ´Ø¿ô¤Ï
85 .I x
86 ¤ÎÁêÊä¸íº¹´Ø¿ô¡¢¤Ä¤Þ¤ê 1.0 \- erf(x) ¤òÊÖ¤¹¡£
87 .\"O .SH RETURN VALUE
88 .SH ÊÖ¤êÃÍ
89 .\"O On success, these functions return the complementary error function of
90 .\"O .IR x ,
91 .\"O a value in the range [0,2].
92 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
93 .I x
94 ¤ÎÁêÊä¸íº¹´Ø¿ô¤òÊÖ¤¹¡£
95 ÊÖ¤êÃͤϠ[0,2] ¤ÎÈϰϤȤʤ롣
96
97 .\"O If
98 .\"O .I x
99 .\"O is a NaN, a NaN is returned.
100 .I x
101 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
102
103 .\"O If
104 .\"O .I x
105 .\"O is +0 or \-0, 1 is returned.
106 .I x
107 ¤¬ +0 ¤« \-0 ¤Î¾ì¹ç¡¢1 ¤¬ÊÖ¤µ¤ì¤ë¡£
108
109 .\"O If
110 .\"O .I x
111 .\"O is positive infinity,
112 .\"O +0 is returned.
113 .I x
114 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+0 ¤¬ÊÖ¤µ¤ì¤ë¡£
115
116 .\"O If
117 .\"O .I x
118 .\"O is negative infinity,
119 .\"O +2 is returned.
120 .I x
121 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+2 ¤¬ÊÖ¤µ¤ì¤ë¡£
122
123 .\"O If the function result underflows and produces an unrepresentable value,
124 .\"O the return value is 0.0.
125 ´Ø¿ô¤Î·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤·¡¢É½¸½¤Ç¤­¤Ê¤¤ÃͤȤʤë¾ì¹ç¤Ï¡¢
126 ÊÖ¤êÃͤϠ0.0 ¤È¤Ê¤ë¡£
127
128 .\"O If the function result underflows but produces a representable
129 .\"O (i.e., subnormal) value,
130 .\"O .\" e.g., erfc(27) on x86-32
131 .\"O that value is returned, and
132 .\"O a range error occurs.
133 ´Ø¿ô¤Î·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤¹¤ë¤¬¡¢
134 ɽ¸½¤Ç¤­¤ëÃÍ (¤Ä¤Þ¤êÈóÀµµ¬²½¿ô (subnormal)) ¤È¤Ê¤ë¾ì¹ç¤Ï¡¢
135 .\" Î㤨¤Ð x86-32 ¤Ç¤Î erfc(27)
136 ¤½¤ÎÃͤ¬ÊÖ¤µ¤ì¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤¹¤ë¡£
137 .\"O .SH ERRORS
138 .SH ¥¨¥é¡¼
139 .\"O See
140 .\"O .BR math_error (7)
141 .\"O for information on how to determine whether an error has occurred
142 .\"O when calling these functions.
143 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
144 .BR math_error (7)
145 ¤ò»²¾È¤Î¤³¤È¡£
146 .PP
147 .\"O The following errors can occur:
148 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
149 .TP
150 .\"O Range error: result underflow (result is subnormal)
151 ÈÏ°Ï¥¨¥é¡¼: ·ë²Ì¤Î¥¢¥ó¥À¡¼¥Õ¥í¡¼ (·ë²Ì¤¬ÈóÀµµ¬²½¿ô)
152 .\" .I errno
153 .\" is set to
154 .\" .BR ERANGE .
155 .\"O An underflow floating-point exception
156 .\"O .RB ( FE_UNDERFLOW )
157 .\"O is raised.
158 ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
159 .RB ( FE_UNDERFLOW )
160 ¤¬¾å¤¬¤ë¡£
161 .PP
162 .\"O These functions do not set
163 .\"O .IR errno .
164 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
165 .I errno
166 ¤òÀßÄꤷ¤Ê¤¤¡£
167 .\" FIXME . Is it intentional that these functions do not set errno?
168 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
169 .\"O .SH "CONFORMING TO"
170 .SH ½àµò
171 C99, POSIX.1-2001.
172 .\"O The variant returning
173 .\"O .I double
174 .\"O also conforms to
175 .\"O SVr4, 4.3BSD.
176 .I double
177 ÈǤδؿô¤Ï SVr4, 4.3BSD ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
178 .\"O .SH NOTES
179 .SH Ãí°Õ
180 .\"O The
181 .\"O .BR erfc ()
182 .\"O functions are provided to avoid the loss accuracy that
183 .\"O would occur for the calculation 1-erf(x) for large values of
184 .\"O .IR x
185 .\"O (for which the value of erf(x) approaches 1).
186 .BR erfc ()
187 ´Ø¿ô¤¬Ä󶡤µ¤ì¤Æ¤¤¤ë¤Î¤Ï¡¢
188 .I x
189 ¤¬Â礭¤ÊÃͤξì¹ç¤Ë (erf(x) ¤ÎÃͤϠ1 ¤Ë¶áÉÕ¤¤¤Æ¤¤¤¯¤³¤È¤Ç)
190 1-erf(x) ¤Î·×»»¤Ë¤ª¤¤¤ÆÀºÅÙ¤¬¼º¤ï¤ì¤ë¤Î¤òÈò¤±¤ë¤¿¤á¤Ç¤¢¤ë¡£
191 .\"O .SH "SEE ALSO"
192 .SH ´ØÏ¢¹àÌÜ
193 .BR cerf (3),
194 .BR erf (3),
195 .BR exp (3)