OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / 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 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH ERFC 3 2010\-09\-20 GNU "Linux Programmer's Manual"
30 .SH 名前
31 erfc, erfcf, erfcl \- 相補誤差関数
32 .SH 書式
33 .nf
34 \fB#include <math.h>\fP
35
36 \fBdouble erfc(double \fP\fIx\fP\fB);\fP
37 \fBfloat erfcf(float \fP\fIx\fP\fB);\fP
38 \fBlong double erfcl(long double \fP\fIx\fP\fB);\fP
39
40 .fi
41 \fI\-lm\fP でリンクする。
42 .sp
43 .in -4n
44 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
45 .in
46 .sp
47 .ad l
48 \fBerfc\fP():
49 .RS 4
50 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
51 _POSIX_C_SOURCE\ >=\ 200112L;
52 .br
53 or \fIcc\ \-std=c99\fP
54 .RE
55 .br
56 \fBerfcf\fP(), \fBerfcl\fP():
57 .RS 4
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
59 || _POSIX_C_SOURCE\ >=\ 200112L;
60 .br
61 or \fIcc\ \-std=c99\fP
62 .RE
63 .ad b
64 .SH 説明
65 \fBerfc\fP()  関数は \fIx\fP の相補誤差関数、つまり 1.0 \- erf(x) を返す。
66 .SH 返り値
67 成功すると、これらの関数は \fIx\fP の相補誤差関数を返す。 返り値は [0,2] の範囲となる。
68
69 \fIx\fP が NaN の場合、NaN が返される。
70
71 \fIx\fP が +0 か \-0 の場合、1 が返される。
72
73 \fIx\fP が正の無限大の場合、+0 が返される。
74
75 \fIx\fP が負の無限大の場合、+2 が返される。
76
77 関数の結果がアンダーフローし、表現できない値となる場合は、 返り値は 0.0 となる。
78
79 .\" e.g., erfc(27) on x86-32
80 関数の結果がアンダーフローするが、 表現できる値 (つまり非正規化数 (subnormal)) となる場合は、 その値が返され、範囲エラー (range
81 error) が発生する。
82 .SH エラー
83 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
84 .PP
85 以下のエラーが発生する可能性がある。
86 .TP 
87 範囲エラー: 結果のアンダーフロー (結果が非正規化数)
88 .\" .I errno
89 .\" is set to
90 .\" .BR ERANGE .
91 アンダーフロー浮動小数点例外 (\fBFE_UNDERFLOW\fP)  が上がる。
92 .PP
93 .\" FIXME . Is it intentional that these functions do not set errno?
94 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
95 これらの関数は \fIerrno\fP を設定しない。
96 .SH 準拠
97 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD にも準拠している。
98 .SH 注意
99 \fBerfc\fP()  関数が提供されているのは、 \fIx\fP が大きな値の場合に (erf(x) の値は 1 に近付いていくことで)  1\-erf(x)
100 の計算において精度が失われるのを避けるためである。
101 .SH 関連項目
102 \fBcerf\fP(3), \fBerf\fP(3), \fBexp\fP(3)