OSDN Git Service

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