OSDN Git Service

bf1f7e010b46850aba05361c6d5a211559ef7ad8
[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 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sat Jul 24 19:08:17 1993 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-08-25, aeb
31 .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB
32 .\" 2008-07-24, mtk, created this page, based on material from j0.3.
33 .\"
34 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
35 .\"         all rights reserved.
36 .\" Translated 2008-09-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.07
37 .\" 
38 .TH Y0 3  2008-08-10 "" "Linux Programmer's Manual"
39 .SH 名前
40 y0, y0f, y0l, y1, y1f, y1l, yn, ynf, ynl \-
41 第二種ベッセル関数
42 .SH 書式
43 .nf
44 .B #include <math.h>
45 .sp
46 .BI "double y0(double " x );
47 .br
48 .BI "double y1(double " x );
49 .br
50 .BI "double yn(int " n ", double " x );
51 .sp
52 .BI "float y0f(float " x );
53 .br
54 .BI "float y1f(float " x );
55 .br
56 .BI "float ynf(int " n ", float " x );
57 .sp
58 .BI "long double y0l(long double " x );
59 .br
60 .BI "long double y1l(long double " x );
61 .br
62 .BI "long double ynl(int " n ", long double " x );
63 .fi
64 .sp
65 \fI\-lm\fP でリンクする。
66 .sp
67 .in -4n
68 glibc 向けの機能検査マクロの要件
69 .RB ( feature_test_macros (7)
70 参照):
71 .in
72 .sp
73 .ad l
74 .BR y0 (),
75 .BR y1 (),
76 .BR yn ():
77 .RS 4
78 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
79 .RE
80 .br
81 .BR y0f (),
82 .BR y0l (),
83 .BR y1f (),
84 .BR y1l (),
85 .BR ynf (),
86 .BR ynl ():
87 .RS 4
88 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 600
89 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
90 .RE
91 .ad b
92 .SH 説明
93 .PP
94 関数
95 .BR y0 ()
96
97 .BR y1 ()
98 はそれぞれ \fIx\fP の 0 次、1 次の
99 第二種ベッセル関数の値を返す。
100 関数
101 .BR yn ()
102 は \fIx\fP の \fIn\fP 次の
103 第二種ベッセル関数の値を返す。
104 .PP
105 \fIx\fP は正の値でなければならない。
106 .PP
107 .BR y0f ()
108 群の関数、
109 .BR y0l ()
110 群の関数は、それぞれ
111 .I float
112 型、
113 .I "long double"
114 型の返り値を返す。
115 .SH 返り値
116 成功すると、これらの関数は
117 .I x
118 に対する第二種ベッセル関数の値を返す。
119
120 .I x
121 が NaN の場合、NaN が返される。
122
123 .I x
124 が負の場合、領域エラー (domain error) が発生し、
125 各関数はそれぞれ
126 .RB - HUGE_VAL ,
127 .RB - HUGE_VALF ,
128 .RB - HUGE_VALL
129 を返す (POSIX.1-2001 ではこの場合に NaN を返すことも認めている)。
130
131 .I x
132 が 0.0 の場合、極エラー (pole error) が発生し、
133 各関数はそれぞれ
134 .RB - HUGE_VAL ,
135 .RB - HUGE_VALF ,
136 .RB - HUGE_VALL
137 を返す。
138
139 結果がアンダーフローする場合、
140 範囲エラー (range error) が発生し、
141 各関数は 0.0 を返す。
142
143 結果がオーバーフローする場合、範囲エラーが発生し、
144 各関数はそれぞれ
145 .RB - HUGE_VAL ,
146 .RB - HUGE_VALF ,
147 .RB - HUGE_VALL
148 を返す (POSIX.1-2001 ではこの場合に 0.0 を返すことも認めている)。
149 .SH エラー
150 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
151 .BR math_error (7)
152 を参照のこと。
153 .PP
154 以下のエラーが発生する可能性がある。
155 .TP
156 領域エラー: \fIx\fP が負
157 .I errno
158
159 .B EDOM
160 が設定される。
161 不正 (invalid) 浮動小数点例外
162 .RB ( FE_INVALID )
163 が上がる。
164 .TP
165 極エラー: \fIx\fP が 0.0
166 .\" Before POSIX.1-2001 TC2, this was (inconsistently) specified
167 .\" as a range error.
168 .\" FIXME . y0(0.0) gives EDOM
169 .I errno
170
171 .B ERANGE
172 が設定される (「バグ」の節を参照のこと)。
173 このエラーの場合、
174 .BR fetestexcept (3)
175
176 .B FE_DIVBYZERO
177 例外を返さない。
178 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
179 .TP
180 範囲エラー: 結果のアンダーフロー
181 .\" e.g., y0(1e33) on glibc 2.8/x86-32
182 .I errno
183
184 .B ERANGE
185 が設定される。
186 .\" An underflow floating-point exception
187 .\" .RB ( FE_UNDERFLOW )
188 .\" is raised.
189 .\" FIXME . Is it intentional that these functions do not use FE_*?
190 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6806
191 このエラーの場合、
192 .BR fetestexcept (3)
193
194 .B FE_UNDERFLOW
195 例外を返さない。
196 .TP
197 範囲エラー: 結果のオーバーフロー
198 .\" e.g., yn(10, 1e-40) on glibc 2.8/x86-32
199 .\" .I errno
200 .\" is set to
201 .\" .BR ERANGE .
202 この場合、
203 .I errno
204 は設定されない。
205 .\" FIXME . Is it intentional that errno is not set?
206 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
207 オーバーフロー浮動小数点例外
208 .RB ( FE_OVERFLOW )
209 が上がる。
210 .SH 準拠
211 .I double
212 型の値を返す関数は、SVr4, 4.3BSD, POSIX.1-2001
213 に準拠する。
214 それ以外は非標準の関数で、BSD にも存在する。
215 .SH バグ
216 極エラーの場合、これらの関数は
217 .I errno
218
219 .B EDOM
220 を設定するが、
221 POSIX.1-2004 では
222 .B ERANGE
223 を設定することが要求されている。
224 .\" FIXME .
225 .\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6807
226
227 glibc バージョン 2.3.2 以前では、
228 .\" FIXME . Actually, 2.3.2 is the earliest test result I have; so yet
229 .\" to confirm if this error occurs only in 2.3.2.
230 領域エラーが発生した場合に、これらの関数は
231 不正浮動小数点例外
232 .RB ( FE_INVALID )
233 を上げない。
234 .SH 関連項目
235 .BR j0 (3)