OSDN Git Service

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