OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[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 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH SCALBLN 3 2010\-09\-20 "" "Linux Programmer's Manual"
31 .SH 名前
32 scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl \- multiply
33 floating\-point number by integral power of radix
34 .SH 書式
35 \fB#include <math.h>\fP
36 .sp
37 \fBdouble scalbln(double \fP\fIx\fP\fB, long int \fP\fIexp\fP\fB);\fP
38 .br
39 \fBfloat scalblnf(float \fP\fIx\fP\fB, long int \fP\fIexp\fP\fB);\fP
40 .br
41 \fBlong double scalblnl(long double \fP\fIx\fP\fB, long int \fP\fIexp\fP\fB);\fP
42 .sp
43 \fBdouble scalbn(double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
44 .br
45 \fBfloat scalbnf(float \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
46 .br
47 \fBlong double scalbnl(long double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
48 .sp
49 \fI\-lm\fP でリンクする。
50 .sp
51 .in -4n
52 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
53 .in
54 .sp
55 .ad l
56 \fBscalbln\fP(), \fBscalblnf\fP(), \fBscalblnl\fP():
57 .RS
58 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
59 .br
60 or \fIcc\ \-std=c99\fP
61 .RE
62 .br
63 \fBscalbn\fP(), \fBscalbnf\fP(), \fBscalbnl\fP():
64 .RS
65 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
66 || _POSIX_C_SOURCE\ >=\ 200112L;
67 .br
68 or \fIcc\ \-std=c99\fP
69 .RE
70 .ad b
71 .SH 説明
72 これらの関数は最初の引き数 \fIx\fP に \fBFLT_RADIX\fP の \fIexp\fP 乗を掛ける (\fBFLT_RADIX\fP はおそらく 2
73 である)。つまり、以下の式の値を返す。
74 .nf
75
76     x * FLT_RADIX ** exp
77 .fi
78
79 .\" not in /usr/include but in a gcc lib
80 \fBFLT_RADIX\fP の定義は \fI<float.h>\fP をインクルードすることで得られる。
81 .SH 返り値
82 成功すると、これらの関数は \fIx\fP * \fBFLT_RADIX\fP ** \fIexp\fP を返す。
83
84 \fIx\fP が NaN の場合、NaN が返される。
85
86 \fIx\fP が正の無限大 (負の無限大) の場合、正の無限大 (負の無限大) が返される。
87
88 \fIx\fP が +0 (\-0) の場合、+0 (\-0) が返される。
89
90 結果がオーバーフローする場合、 範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP,
91 \fBHUGE_VALF\fP, \fBHUGE_VALL\fP を返す。符号は \fIx\fP と同じになる。
92
93 結果がアンダーフローする場合、範囲エラーが発生し、 各関数は 0 を返す。符号は \fIx\fP と同じになる。
94 .SH エラー
95 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
96 .PP
97 以下のエラーが発生する可能性がある。
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 これらの関数は \fIerrno\fP を設定しない。
114 .SH バージョン
115 これらの関数は glibc バージョン 2.1 で初めて登場した。
116 .SH 準拠
117 C99, POSIX.1\-2001.
118 .SH 注意
119 These functions differ from the obsolete functions described in \fBscalb\fP(3)
120 in the type of their second argument.  The functions described on this page
121 have a second argument of an integral type, while those in \fBscalb\fP(3)  have
122 a second argument of type \fIdouble\fP.
123
124 If \fBFLT_RADIX\fP equals 2 (which is usual), then \fBscalbn\fP()  is equivalent
125 to \fBldexp\fP(3).
126 .SH 関連項目
127 \fBldexp\fP(3), \fBscalb\fP(3)