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>
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.
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.
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
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
27 .\" References consulted:
28 .\" Linux libc source code
29 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
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.
36 .\"*******************************************************************
38 .\" This file was generated with po4a. Translate the source file.
40 .\"*******************************************************************
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
46 .TH Y0 3 2014\-01\-18 "" "Linux Programmer's Manual"
48 y0, y0f, y0l, y1, y1f, y1l, yn, ynf, ynl \- 第二種ベッセル関数
51 \fB#include <math.h>\fP
53 \fBdouble y0(double \fP\fIx\fP\fB);\fP
55 \fBdouble y1(double \fP\fIx\fP\fB);\fP
57 \fBdouble yn(int \fP\fIn\fP\fB, double \fP\fIx\fP\fB);\fP
59 \fBfloat y0f(float \fP\fIx\fP\fB);\fP
61 \fBfloat y1f(float \fP\fIx\fP\fB);\fP
63 \fBfloat ynf(int \fP\fIn\fP\fB, float \fP\fIx\fP\fB);\fP
65 \fBlong double y0l(long double \fP\fIx\fP\fB);\fP
67 \fBlong double y1l(long double \fP\fIx\fP\fB);\fP
69 \fBlong double ynl(int \fP\fIn\fP\fB, long double \fP\fIx\fP\fB);\fP
75 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
79 \fBy0\fP(), \fBy1\fP(), \fByn\fP():
81 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
84 \fBy0f\fP(), \fBy0l\fP(), \fBy1f\fP(), \fBy1l\fP(), \fBynf\fP(), \fBynl\fP():
86 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
87 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 600
92 関数 \fBy0\fP() と \fBy1\fP() はそれぞれ \fIx\fP の 0 次、1 次の 第二種ベッセル関数の値を返す。 関数 \fByn\fP() は
93 \fIx\fP の \fIn\fP 次の 第二種ベッセル関数の値を返す。
95 \fIx\fP は正の値でなければならない。
97 関数 \fBy0f\fP(), \fBy1f\fP(), \fBynf\fP() は、 \fIfloat\fP 型を引数に取り、返り値として返す。 関数 \fBy0l\fP(),
98 \fBy1l\fP(), \fBynl\fP() は、 \fIlong double\fP 型を引数に取り、返り値として返す。
100 成功すると、これらの関数は \fIx\fP に対する第二種ベッセル関数の値を返す。
102 \fIx\fP が NaN の場合、NaN が返される。
104 \fIx\fP が負の場合、領域エラー (domain error) が発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
105 \-\fBHUGE_VALL\fP を返す (POSIX.1\-2001 ではこの場合に NaN を返すことも認めている)。
107 \fIx\fP が 0.0 の場合、極エラー (pole error) が発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
108 \-\fBHUGE_VALL\fP を返す。
110 結果がアンダーフローする場合、 範囲エラー (range error) が発生し、 各関数は 0.0 を返す。
112 結果がオーバーフローする場合、範囲エラーが発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
113 \-\fBHUGE_VALL\fP を返す (POSIX.1\-2001 ではこの場合に 0.0 を返すことも認めている)。
115 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7) を参照のこと。
119 領域エラー (domain error): \fIx\fP が負である
120 \fIerrno\fP に \fBEDOM\fP が設定される。 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP) が上がる。
123 .\" Before POSIX.1-2001 TC2, this was (inconsistently) specified
124 .\" as a range error.
125 .\" FIXME . y0(0.0) gives EDOM
126 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
127 \fIerrno\fP に \fBERANGE\fP が設定される (「バグ」の節を参照のこと)。 このエラーの場合、 \fBfetestexcept\fP(3) は
128 \fBFE_DIVBYZERO\fP 例外を返さない。
130 範囲エラー (range error): 結果のアンダーフロー
131 .\" e.g., y0(1e33) on glibc 2.8/x86-32
132 .\" An underflow floating-point exception
133 .\" .RB ( FE_UNDERFLOW )
135 .\" FIXME . Is it intentional that these functions do not use FE_*?
136 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6806
137 \fIerrno\fP に \fBERANGE\fP が設定される。 このエラーの場合、 \fBfetestexcept\fP(3) は \fBFE_UNDERFLOW\fP
140 範囲エラー (range error): 結果のオーバーフロー
141 .\" e.g., yn(10, 1e-40) on glibc 2.8/x86-32
145 .\" FIXME . Is it intentional that errno is not set?
146 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
147 この場合、 \fIerrno\fP は設定されない。 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP) が上がる。
149 \fIdouble\fP 型の値を返す関数は、SVr4, 4.3BSD, POSIX.1\-2001 に準拠する。 それ以外は非標準の関数で、BSD
153 .\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6807
154 極エラーの場合、これらの関数は \fIerrno\fP に \fBEDOM\fP を設定するが、 POSIX.1\-2004 では \fBERANGE\fP
157 .\" FIXME . Actually, 2.3.2 is the earliest test result I have; so yet
158 .\" to confirm if this error occurs only in 2.3.2.
159 glibc バージョン 2.3.2 以前では、 領域エラーが発生した場合に、これらの関数は 不正浮動小数点例外 (\fBFE_INVALID\fP)
164 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.64 の一部
165 である。プロジェクトの説明とバグ報告に関する情報は
166 http://www.kernel.org/doc/man\-pages/ に書かれている。