OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / scalb.3
1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
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 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH SCALB 3 2010\-09\-20 "" "Linux Programmer's Manual"
33 .SH 名前
34 scalb, scalbf, scalbl \- 浮動小数点数に整数である基数の累乗を掛ける (廃止予定)
35 .SH 書式
36 \fB#include <math.h>\fP
37 .sp
38 \fBdouble scalb(double \fP\fIx\fP\fB, double \fP\fIexp\fP\fB);\fP
39 .br
40 \fBfloat scalbf(float \fP\fIx\fP\fB, double \fP\fIexp\fP\fB);\fP
41 .br
42 \fBlong double scalbl(long double \fP\fIx\fP\fB, double \fP\fIexp\fP\fB);\fP
43 .sp
44 \fI\-lm\fP でリンクする。
45 .sp
46 .in -4n
47 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
48 .in
49 .sp
50 .ad l
51 \fBscalb\fP():
52 .RS 4
53 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
54 .RE
55 .br
56 \fBscalbf\fP(), \fBscalbl\fP():
57 .RS 4
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
59 .RE
60 .ad b
61 .SH 説明
62 これらの関数は最初の引き数 \fIx\fP に \fBFLT_RADIX\fP の \fIexp\fP 乗を掛ける (\fBFLT_RADIX\fP はおそらく 2
63 である)。つまり、以下の式の値を返す。
64 .nf
65
66     x * FLT_RADIX ** exp
67 .fi
68
69 .\" not in /usr/include but in a gcc lib
70 \fBFLT_RADIX\fP の定義は \fI<float.h>\fP をインクルードすることで得られる。
71 .SH 返り値
72 成功すると、これらの関数は \fIx\fP * \fBFLT_RADIX\fP ** \fIexp\fP を返す。
73
74 \fIx\fP か \fIexp\fP が NaN の場合、NaN が返される。
75
76 \fIx\fP が正の無限大 (負の無限大) で \fIexp\fP が負の無限大でない場合、正の無限大 (負の無限大) が返される。
77
78 \fIx\fP が +0 (\-0) で \fIexp\fP が正の無限大でない場合、+0 (\-0) が返される。
79
80 \fIx\fP がゼロで \fIexp\fP が正の無限大の場合、領域エラー (domain error) が発生し、 NaN が返される。
81
82 \fIx\fP が無限大で \fIexp\fP が負の無限大の場合、領域エラー (domain error) が発生し、 NaN が返される。
83
84 結果がオーバーフローする場合、 範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP,
85 \fBHUGE_VALF\fP, \fBHUGE_VALL\fP を返す。符号は \fIx\fP と同じになる。
86
87 結果がアンダーフローする場合、範囲エラーが発生し、 各関数は 0 を返す。符号は \fIx\fP と同じになる。
88 .SH エラー
89 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
90 .PP
91 以下のエラーが発生する可能性がある。
92 .TP 
93 領域エラー (domain error): \fIx\fP が 0 で \fIexp\fP が正の無限大、または \fIx\fP が正の無限大で \fIexp\fP が負の無限大
94 .\" .I errno
95 .\" is set to
96 .\" .BR EDOM .
97 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)  が上がる。
98 .TP 
99 範囲エラー (range error)、オーバーフローの場合
100 .\" .I errno
101 .\" is set to
102 .\" .BR ERANGE .
103 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
104 .TP 
105 範囲エラー (range error)、アンダーフローの場合
106 .\" .I errno
107 .\" is set to
108 .\" .BR ERANGE .
109 アンダーフロー浮動小数点例外 (\fBFE_UNDERFLOW\fP)  が上がる。
110 .PP
111 .\" FIXME . Is it intentional that these functions do not set errno?
112 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803
113 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6804
114 これらの関数は \fIerrno\fP を設定しない。
115 .SH 準拠
116 \fBscalb\fP()  は POSIX.1\-2001 で規定されているが、廃止予定とされている。 POSIX.1\-2008 では \fBscalb\fP()
117 の仕様は削除されており、代わりに \fBscalbln\fP(3), \fBscalblnf\fP(3), \fBscalblnl\fP(3)  の使用が推奨されている。
118 \fBscalb\fP()  関数は 4.3BSD に由来する。
119
120 .\" Looking at header files: scalbf() is present on the
121 .\" BSDs, Tru64, HP-UX 11, Irix 6.5; scalbl() is on HP-UX 11 and Tru64.
122 \fBscalbf\fP()  と \fBscalbl\fP()  は標準化されていない。 それにも関わらず、 \fBscalbf\fP()
123 はいくつかの他のシステムに存在する。
124 .SH 関連項目
125 \fBldexp\fP(3), \fBscalbln\fP(3)
126 .SH この文書について
127 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
128 である。プロジェクトの説明とバグ報告に関する情報は
129 http://www.kernel.org/doc/man\-pages/ に書かれている。