OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / y0.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 Sat Jul 24 19:08:17 1993 by Rik Faith (faith@cs.unc.edu)
32 .\" Modified 2002-08-25, aeb
33 .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB
34 .\" 2008-07-24, mtk, created this page, based on material from j0.3.
35 .\"
36 .\"*******************************************************************
37 .\"
38 .\" This file was generated with po4a. Translate the source file.
39 .\"
40 .\"*******************************************************************
41 .TH Y0 3 2008\-08\-10 "" "Linux Programmer's Manual"
42 .SH 名前
43 y0, y0f, y0l, y1, y1f, y1l, yn, ynf, ynl \- 第二種ベッセル関数
44 .SH 書式
45 .nf
46 \fB#include <math.h>\fP
47 .sp
48 \fBdouble y0(double \fP\fIx\fP\fB);\fP
49 .br
50 \fBdouble y1(double \fP\fIx\fP\fB);\fP
51 .br
52 \fBdouble yn(int \fP\fIn\fP\fB, double \fP\fIx\fP\fB);\fP
53 .sp
54 \fBfloat y0f(float \fP\fIx\fP\fB);\fP
55 .br
56 \fBfloat y1f(float \fP\fIx\fP\fB);\fP
57 .br
58 \fBfloat ynf(int \fP\fIn\fP\fB, float \fP\fIx\fP\fB);\fP
59 .sp
60 \fBlong double y0l(long double \fP\fIx\fP\fB);\fP
61 .br
62 \fBlong double y1l(long double \fP\fIx\fP\fB);\fP
63 .br
64 \fBlong double ynl(int \fP\fIn\fP\fB, long double \fP\fIx\fP\fB);\fP
65 .fi
66 .sp
67 \fI\-lm\fP でリンクする。
68 .sp
69 .in -4n
70 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
71 .in
72 .sp
73 .ad l
74 \fBy0\fP(), \fBy1\fP(), \fByn\fP():
75 .RS 4
76 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
77 .RE
78 .br
79 \fBy0f\fP(), \fBy0l\fP(), \fBy1f\fP(), \fBy1l\fP(), \fBynf\fP(), \fBynl\fP():
80 .RS 4
81 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
82 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 600
83 .RE
84 .ad b
85 .SH 説明
86 .PP
87 関数 \fBy0\fP()  と \fBy1\fP()  はそれぞれ \fIx\fP の 0 次、1 次の 第二種ベッセル関数の値を返す。 関数 \fByn\fP()  は
88 \fIx\fP の \fIn\fP 次の 第二種ベッセル関数の値を返す。
89 .PP
90 \fIx\fP は正の値でなければならない。
91 .PP
92 \fBy0f\fP()  群の関数、 \fBy0l\fP()  群の関数は、それぞれ \fIfloat\fP 型、 \fIlong double\fP 型の返り値を返す。
93 .SH 返り値
94 成功すると、これらの関数は \fIx\fP に対する第二種ベッセル関数の値を返す。
95
96 \fIx\fP が NaN の場合、NaN が返される。
97
98 \fIx\fP が負の場合、領域エラー (domain error) が発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
99 \-\fBHUGE_VALL\fP を返す (POSIX.1\-2001 ではこの場合に NaN を返すことも認めている)。
100
101 \fIx\fP が 0.0 の場合、極エラー (pole error) が発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
102 \-\fBHUGE_VALL\fP を返す。
103
104 結果がアンダーフローする場合、 範囲エラー (range error) が発生し、 各関数は 0.0 を返す。
105
106 結果がオーバーフローする場合、範囲エラーが発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
107 \-\fBHUGE_VALL\fP を返す (POSIX.1\-2001 ではこの場合に 0.0 を返すことも認めている)。
108 .SH エラー
109 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
110 .PP
111 以下のエラーが発生する可能性がある。
112 .TP 
113 領域エラー (domain error): \fIx\fP が負である
114 \fIerrno\fP に \fBEDOM\fP が設定される。 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)  が上がる。
115 .TP 
116 極エラー: \fIx\fP が 0.0
117 .\" Before POSIX.1-2001 TC2, this was (inconsistently) specified
118 .\" as a range error.
119 .\" FIXME . y0(0.0) gives EDOM
120 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
121 \fIerrno\fP に \fBERANGE\fP が設定される (「バグ」の節を参照のこと)。 このエラーの場合、 \fBfetestexcept\fP(3)  は
122 \fBFE_DIVBYZERO\fP 例外を返さない。
123 .TP 
124 範囲エラー (range error): 結果のアンダーフロー
125 .\" e.g., y0(1e33) on glibc 2.8/x86-32
126 .\" An underflow floating-point exception
127 .\" .RB ( FE_UNDERFLOW )
128 .\" is raised.
129 .\" FIXME . Is it intentional that these functions do not use FE_*?
130 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6806
131 \fIerrno\fP に \fBERANGE\fP が設定される。 このエラーの場合、 \fBfetestexcept\fP(3)  は \fBFE_UNDERFLOW\fP
132 例外を返さない。
133 .TP 
134 範囲エラー (range error): 結果のオーバーフロー
135 .\" e.g., yn(10, 1e-40) on glibc 2.8/x86-32
136 .\" .I errno
137 .\" is set to
138 .\" .BR ERANGE .
139 .\" FIXME . Is it intentional that errno is not set?
140 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
141 この場合、 \fIerrno\fP は設定されない。 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
142 .SH 準拠
143 \fIdouble\fP 型の値を返す関数は、SVr4, 4.3BSD, POSIX.1\-2001 に準拠する。 それ以外は非標準の関数で、BSD
144 にも存在する。
145 .SH バグ
146 .\" FIXME .
147 .\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6807
148 極エラーの場合、これらの関数は \fIerrno\fP に \fBEDOM\fP を設定するが、 POSIX.1\-2004 では \fBERANGE\fP
149 を設定することが要求されている。
150
151 .\" FIXME . Actually, 2.3.2 is the earliest test result I have; so yet
152 .\" to confirm if this error occurs only in 2.3.2.
153 glibc バージョン 2.3.2 以前では、 領域エラーが発生した場合に、これらの関数は 不正浮動小数点例外 (\fBFE_INVALID\fP)
154 を上げない。
155 .SH 関連項目
156 \fBj0\fP(3)
157 .SH この文書について
158 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
159 である。プロジェクトの説明とバグ報告に関する情報は
160 http://www.kernel.org/doc/man\-pages/ に書かれている。