OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man3 / scalbln.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 SCALBLN 3 2013\-06\-21 "" "Linux Programmer's Manual"
33 .SH 名前
34 scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl \-
35 浮動小数点数に基数の整数乗を掛ける
36 .SH 書式
37 \fB#include <math.h>\fP
38 .sp
39 \fBdouble scalbln(double \fP\fIx\fP\fB, long int \fP\fIexp\fP\fB);\fP
40 .br
41 \fBfloat scalblnf(float \fP\fIx\fP\fB, long int \fP\fIexp\fP\fB);\fP
42 .br
43 \fBlong double scalblnl(long double \fP\fIx\fP\fB, long int \fP\fIexp\fP\fB);\fP
44 .sp
45 \fBdouble scalbn(double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
46 .br
47 \fBfloat scalbnf(float \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
48 .br
49 \fBlong double scalbnl(long double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
50 .sp
51 \fI\-lm\fP でリンクする。
52 .sp
53 .in -4n
54 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
55 .in
56 .sp
57 .ad l
58 \fBscalbln\fP(), \fBscalblnf\fP(), \fBscalblnl\fP():
59 .RS
60 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
61 .br
62 or \fIcc\ \-std=c99\fP
63 .RE
64 .br
65 \fBscalbn\fP(), \fBscalbnf\fP(), \fBscalbnl\fP():
66 .RS
67 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
68 || _POSIX_C_SOURCE\ >=\ 200112L;
69 .br
70 or \fIcc\ \-std=c99\fP
71 .RE
72 .ad b
73 .SH 説明
74 これらの関数は最初の引き数 \fIx\fP に \fBFLT_RADIX\fP の \fIexp\fP 乗を掛ける (\fBFLT_RADIX\fP はおそらく 2
75 である)。つまり、以下の式の値を返す。
76 .nf
77
78     x * FLT_RADIX ** exp
79 .fi
80
81 .\" not in /usr/include but in a gcc lib
82 \fBFLT_RADIX\fP の定義は \fI<float.h>\fP をインクルードすることで得られる。
83 .SH 返り値
84 成功すると、これらの関数は \fIx\fP * \fBFLT_RADIX\fP ** \fIexp\fP を返す。
85
86 \fIx\fP が NaN の場合、NaN が返される。
87
88 \fIx\fP が正の無限大 (負の無限大) の場合、正の無限大 (負の無限大) が返される。
89
90 \fIx\fP が +0 (\-0) の場合、+0 (\-0) が返される。
91
92 結果がオーバーフローする場合、 範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP,
93 \fBHUGE_VALF\fP, \fBHUGE_VALL\fP を返す。符号は \fIx\fP と同じになる。
94
95 結果がアンダーフローする場合、範囲エラーが発生し、 各関数は 0 を返す。符号は \fIx\fP と同じになる。
96 .SH エラー
97 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
98 .PP
99 以下のエラーが発生する可能性がある。
100 .TP 
101 範囲エラー (range error)、オーバーフローの場合
102 .\" .I errno
103 .\" is set to
104 .\" .BR ERANGE .
105 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
106 .TP 
107 範囲エラー (range error)、アンダーフローの場合
108 .\" .I errno
109 .\" is set to
110 .\" .BR ERANGE .
111 アンダーフロー浮動小数点例外 (\fBFE_UNDERFLOW\fP)  が上がる。
112 .PP
113 .\" FIXME . Is it intentional that these functions do not set errno?
114 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803
115 これらの関数は \fIerrno\fP を設定しない。
116 .SH バージョン
117 これらの関数は glibc バージョン 2.1 で初めて登場した。
118 .SH 属性
119 .SS "マルチスレッディング (pthreads(7) 参照)"
120 関数 \fBscalbn\fP(), \fBscalbnf\fP(), \fBscalbnl\fP(), \fBscalbln\fP(), \fBscalblnf\fP(),
121 \fBscalblnl\fP() はスレッドセーフである。
122 .SH 準拠
123 C99, POSIX.1\-2001.
124 .SH 注意
125 これらの関数は、 \fBscalb\fP(3) に説明がある廃止予定の関数群とは二番目の
126 引き数の型が異なる。このページで説明する関数群は、二番目の引き数の型が
127 整数である。これに対して \fBscalb\fP(3) に説明がある関数群は、二番目の
128 引き数の型が \fIdouble\fP である。
129
130 \fBFLT_RADIX\fP が 2 の場合 (これが普通だが)、
131 その場合は \fBscalbn\fP() は \fBldexp\fP(3) と等価である。
132 .SH 関連項目
133 \fBldexp\fP(3), \fBscalb\fP(3)
134 .SH この文書について
135 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
136 である。プロジェクトの説明とバグ報告に関する情報は
137 http://www.kernel.org/doc/man\-pages/ に書かれている。