OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man3 / erf.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\" References consulted:
28 .\"     Linux libc source code
29 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30 .\"     386BSD man pages
31 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32 .\" Modified 2002-07-27 by Walter Harms
33 .\"     (walter.harms@informatik.uni-oldenburg.de)
34 .\"
35 .\"*******************************************************************
36 .\"
37 .\" This file was generated with po4a. Translate the source file.
38 .\"
39 .\"*******************************************************************
40 .TH ERF 3 2010\-09\-20 GNU "Linux Programmer's Manual"
41 .SH 名前
42 erf, erff, erfl \- 誤差関数
43 .SH 書式
44 .nf
45 \fB#include <math.h>\fP
46
47 \fBdouble erf(double \fP\fIx\fP\fB);\fP
48 \fBfloat erff(float \fP\fIx\fP\fB);\fP
49 \fBlong double erfl(long double \fP\fIx\fP\fB);\fP
50
51 .fi
52 \fI\-lm\fP でリンクする。
53 .sp
54 .in -4n
55 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
56 .in
57 .sp
58 .ad l
59 \fBerf\fP():
60 .RS 4
61 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
62 _POSIX_C_SOURCE\ >=\ 200112L;
63 .br
64 or \fIcc\ \-std=c99\fP
65 .RE
66 .br
67 \fBerff\fP(), \fBerfl\fP():
68 .RS 4
69 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
70 || _POSIX_C_SOURCE\ >=\ 200112L;
71 .br
72 or \fIcc\ \-std=c99\fP
73 .RE
74 .ad b
75 .SH 説明
76 \fBerf\fP()  は \fIx\fP の誤差関数を返す関数で、以下のように定義されている。
77 .TP 
78     erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(\-t*t) dt
79 .SH 返り値
80 成功すると、これらの関数は \fIx\fP の誤差関数を返す。 返り値は [\-1,\ 1] の範囲となる。
81
82 \fIx\fP が NaN の場合、NaN が返される。
83
84 \fIx\fP が +0 (\-0) の場合、+0 (\-0) が返される。
85
86 \fIx\fP が正の無限大 (負の無限大) の場合、+1 (\-1) が返される。
87
88 \fIx\fP が非正規化数の場合、範囲エラー (range error) が発生し、 返り値は 2*x/sqrt(pi) となる。
89 .SH エラー
90 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
91 .PP
92 以下のエラーが発生する可能性がある。
93 .TP 
94 範囲エラー (range error): 結果がアンダーフローする (\fIx\fP が非正規化数)
95 .\" .I errno
96 .\" is set to
97 .\" .BR ERANGE .
98 アンダーフロー浮動小数点例外 (\fBFE_UNDERFLOW\fP)  が上がる。
99 .PP
100 .\" FIXME . Is it intentional that these functions do not set errno?
101 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785
102 これらの関数は \fIerrno\fP を設定しない。
103 .SH 準拠
104 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD にも準拠している。
105 .SH 関連項目
106 \fBcerf\fP(3), \fBerfc\fP(3), \fBexp\fP(3)
107 .SH この文書について
108 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
109 である。プロジェクトの説明とバグ報告に関する情報は
110 http://www.kernel.org/doc/man\-pages/ に書かれている。