OSDN Git Service

Update release for LDP 3.67
[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 2014\-01\-18 "" "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(), \fBy1f\fP(), \fBynf\fP() は、 \fIfloat\fP 型を引数に取り、返り値として返す。 関数 \fBy0l\fP(),
98 \fBy1l\fP(), \fBynl\fP() は、 \fIlong double\fP 型を引数に取り、返り値として返す。
99 .SH 返り値
100 成功すると、これらの関数は \fIx\fP に対する第二種ベッセル関数の値を返す。
101
102 \fIx\fP が NaN の場合、NaN が返される。
103
104 \fIx\fP が負の場合、領域エラー (domain error) が発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
105 \-\fBHUGE_VALL\fP を返す (POSIX.1\-2001 ではこの場合に NaN を返すことも認めている)。
106
107 \fIx\fP が 0.0 の場合、極エラー (pole error) が発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
108 \-\fBHUGE_VALL\fP を返す。
109
110 結果がアンダーフローする場合、 範囲エラー (range error) が発生し、 各関数は 0.0 を返す。
111
112 結果がオーバーフローする場合、範囲エラーが発生し、 各関数はそれぞれ \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP,
113 \-\fBHUGE_VALL\fP を返す (POSIX.1\-2001 ではこの場合に 0.0 を返すことも認めている)。
114 .SH エラー
115 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
116 .PP
117 以下のエラーが発生する可能性がある。
118 .TP 
119 領域エラー (domain error): \fIx\fP が負である
120 \fIerrno\fP に \fBEDOM\fP が設定される。 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)  が上がる。
121 .TP 
122 極エラー: \fIx\fP が 0.0
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 例外を返さない。
129 .TP 
130 範囲エラー (range error): 結果のアンダーフロー
131 .\" e.g., y0(1e33) on glibc 2.8/x86-32
132 .\" An underflow floating-point exception
133 .\" .RB ( FE_UNDERFLOW )
134 .\" is raised.
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
138 例外を返さない。
139 .TP 
140 範囲エラー (range error): 結果のオーバーフロー
141 .\" e.g., yn(10, 1e-40) on glibc 2.8/x86-32
142 .\" .I errno
143 .\" is set to
144 .\" .BR ERANGE .
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)  が上がる。
148 .SH 準拠
149 \fIdouble\fP 型の値を返す関数は、SVr4, 4.3BSD, POSIX.1\-2001 に準拠する。 それ以外は非標準の関数で、BSD
150 にも存在する。
151 .SH バグ
152 .\" FIXME .
153 .\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6807
154 極エラーの場合、これらの関数は \fIerrno\fP に \fBEDOM\fP を設定するが、 POSIX.1\-2004 では \fBERANGE\fP
155 を設定することが要求されている。
156
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)
160 を上げない。
161 .SH 関連項目
162 \fBj0\fP(3)
163 .SH この文書について
164 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
165 である。プロジェクトの説明とバグ報告に関する情報は
166 http://www.kernel.org/doc/man\-pages/ に書かれている。