OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / LDP_man-pages / release / 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 .SH 名前
32 erfc, erfcf, erfcl \- 相補誤差関数
33 .SH 書式
34 .nf
35 .B #include <math.h>
36
37 .BI "double erfc(double " x );
38 .BI "float erfcf(float " x );
39 .BI "long double erfcl(long double " x );
40
41 .fi
42 \fI\-lm\fP でリンクする。
43 .sp
44 .in -4n
45 glibc 向けの機能検査マクロの要件
46 .RB ( feature_test_macros (7)
47 参照):
48 .in
49 .sp
50 .ad l
51 .BR erfc ():
52 .RS 4
53 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
54 _POSIX_C_SOURCE\ >=\ 200112L;
55 .br
56 or
57 .I cc\ -std=c99
58 .RE
59 .br
60 .BR erfcf (),
61 .BR erfcl ():
62 .RS 4
63 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
64 _POSIX_C_SOURCE\ >=\ 200112L;
65 .br
66 or
67 .I cc\ -std=c99
68 .RE
69 .ad b
70 .SH 説明
71 .BR erfc ()
72 関数は
73 .I x
74 の相補誤差関数、つまり 1.0 \- erf(x) を返す。
75 .SH 返り値
76 成功すると、これらの関数は
77 .I x
78 の相補誤差関数を返す。
79 返り値は [0,2] の範囲となる。
80
81 .I x
82 が NaN の場合、NaN が返される。
83
84 .I x
85 が +0 か \-0 の場合、1 が返される。
86
87 .I x
88 が正の無限大の場合、+0 が返される。
89
90 .I x
91 が負の無限大の場合、+2 が返される。
92
93 関数の結果がアンダーフローし、表現できない値となる場合は、
94 返り値は 0.0 となる。
95
96 関数の結果がアンダーフローするが、
97 表現できる値 (つまり非正規化数 (subnormal)) となる場合は、
98 .\" 例えば x86-32 での erfc(27)
99 その値が返され、範囲エラー (range error) が発生する。
100 .SH エラー
101 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
102 .BR math_error (7)
103 を参照のこと。
104 .PP
105 以下のエラーが発生する可能性がある。
106 .TP
107 範囲エラー: 結果のアンダーフロー (結果が非正規化数)
108 .\" .I errno
109 .\" is set to
110 .\" .BR ERANGE .
111 アンダーフロー浮動小数点例外
112 .RB ( FE_UNDERFLOW )
113 が上がる。
114 .PP
115 これらの関数は
116 .I errno
117 を設定しない。
118 .\" FIXME . Is it intentional that these functions do not set errno?
119 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
120 .SH 準拠
121 C99, POSIX.1-2001.
122 .I double
123 版の関数は SVr4, 4.3BSD にも準拠している。
124 .SH 注意
125 .BR erfc ()
126 関数が提供されているのは、
127 .I x
128 が大きな値の場合に (erf(x) の値は 1 に近付いていくことで)
129 1-erf(x) の計算において精度が失われるのを避けるためである。
130 .SH 関連項目
131 .BR cerf (3),
132 .BR erf (3),
133 .BR exp (3)