OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[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)