OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[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 .\" 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 .\" Japanese Version Copyright (c) 2005 Yuichi SATO all rights reserved.
26 .\" and Copyright (c) 2008 Akihiro MOTOKI
27 .\" Translated Tue Feb  1 07:25:51 JST 2005
28 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
29 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
30 .\"
31 .TH SCALB 3 2010-09-20 "" "Linux Programmer's Manual"
32 .SH Ì¾Á°
33 scalb, scalbf, scalbl \- ÉâÆ°¾®¿ôÅÀ¿ô¤ËÀ°¿ô¤Ç¤¢¤ë´ð¿ô¤ÎÎß¾è¤ò³Ý¤±¤ë (ÇÑ»ßͽÄê)
34 .SH ½ñ¼°
35 .B #include <math.h>
36 .sp
37 .BI "double scalb(double " x ", double " exp );
38 .br
39 .BI "float scalbf(float " x ", double " exp );
40 .br
41 .BI "long double scalbl(long double " x ", double " exp );
42 .sp
43 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
44 .sp
45 .in -4n
46 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
47 .RB ( feature_test_macros (7)
48 »²¾È):
49 .in
50 .sp
51 .ad l
52 .BR scalb ():
53 .RS 4
54 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
55 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
56 .RE
57 .br
58 .BR scalbf (),
59 .BR scalbl ():
60 .RS 4
61 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
62 .RE
63 .ad b
64 .SH ÀâÌÀ
65 ¤³¤ì¤é¤Î´Ø¿ô¤ÏºÇ½é¤Î°ú¤­¿ô
66 .I x
67 ¤Ë
68 .B FLT_RADIX
69 ¤Î
70 .I exp
71 ¾è¤ò³Ý¤±¤ë
72 .RB ( FLT_RADIX
73 ¤Ï¤ª¤½¤é¤¯ 2 ¤Ç¤¢¤ë)¡£¤Ä¤Þ¤ê¡¢°Ê²¼¤Î¼°¤ÎÃͤòÊÖ¤¹¡£
74 .nf
75
76     x * FLT_RADIX ** exp
77 .fi
78
79 .B FLT_RADIX
80 ¤ÎÄêµÁ¤Ï
81 .I <float.h>
82 ¤ò¥¤¥ó¥¯¥ë¡¼¥É¤¹¤ë¤³¤È¤ÇÆÀ¤é¤ì¤ë¡£
83 .\" /usr/include ¤Ç¤Ï¤Ê¤¯¡¢gcc ¤Î lib ¤Ë¤¢¤ë¡£
84 .SH ÊÖ¤êÃÍ
85 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï \fIx\fP * \fBFLT_RADIX\fP ** \fIexp\fP ¤òÊÖ¤¹¡£
86
87 .I x
88 ¤«
89 .I exp
90 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
91
92 .I x
93 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Ç
94 .I exp
95 ¤¬Éé¤Î̵¸ÂÂç¤Ç¤Ê¤¤¾ì¹ç¡¢Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤¬ÊÖ¤µ¤ì¤ë¡£
96
97 .I x
98 ¤¬ +0 (\-0) ¤Ç
99 .I exp
100 ¤¬Àµ¤Î̵¸ÂÂç¤Ç¤Ê¤¤¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
101
102 .I x
103 ¤¬¥¼¥í¤Ç
104 .I exp
105 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
106 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
107
108 .I x
109 ¤¬Ìµ¸ÂÂç¤Ç
110 .I exp
111 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
112 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
113
114 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢
115 ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
116 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
117 .BR HUGE_VAL ,
118 .BR HUGE_VALF ,
119 .BR HUGE_VALL
120 ¤òÊÖ¤¹¡£Éä¹æ¤Ï
121 .I x
122 ¤ÈƱ¤¸¤Ë¤Ê¤ë¡£
123
124 ·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼¤¬È¯À¸¤·¡¢
125 ³Æ´Ø¿ô¤Ï 0 ¤òÊÖ¤¹¡£Éä¹æ¤Ï
126 .I x
127 ¤ÈƱ¤¸¤Ë¤Ê¤ë¡£
128 .SH ¥¨¥é¡¼
129 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
130 .BR math_error (7)
131 ¤ò»²¾È¤Î¤³¤È¡£
132 .PP
133 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
134 .TP
135 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤¬ 0 ¤Ç \fIexp\fP ¤¬Àµ¤Î̵¸ÂÂç¡¢\
136 ¤Þ¤¿¤Ï \fIx\fP ¤¬Àµ¤Î̵¸ÂÂç¤Ç \fIexp\fP ¤¬Éé¤Î̵¸ÂÂç
137 .\" .I errno
138 .\" is set to
139 .\" .BR EDOM .
140 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
141 .RB ( FE_INVALID )
142 ¤¬¾å¤¬¤ë¡£
143 .TP
144 ÈÏ°Ï¥¨¥é¡¼ (range error)¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
145 .\" .I errno
146 .\" is set to
147 .\" .BR ERANGE .
148 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
149 .RB ( FE_OVERFLOW )
150 ¤¬¾å¤¬¤ë¡£
151 .TP
152 ÈÏ°Ï¥¨¥é¡¼ (range error)¡¢¥¢¥ó¥À¡¼¥Õ¥í¡¼
153 .\" .I errno
154 .\" is set to
155 .\" .BR ERANGE .
156 ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
157 .RB ( FE_UNDERFLOW )
158 ¤¬¾å¤¬¤ë¡£
159 .PP
160 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
161 .I errno
162 ¤òÀßÄꤷ¤Ê¤¤¡£
163 .\" FIXME . Is it intentional that these functions do not set errno?
164 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803
165 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6804
166 .SH ½àµò
167 .BR scalb ()
168 ¤Ï POSIX.1-2001 ¤Çµ¬Äꤵ¤ì¤Æ¤¤¤ë¤¬¡¢ÇÑ»ßͽÄê¤È¤µ¤ì¤Æ¤¤¤ë¡£
169 POSIX.1-2008 ¤Ç¤Ï
170 .BR scalb ()
171 ¤Î»ÅÍͤϺï½ü¤µ¤ì¤Æ¤ª¤ê¡¢Âå¤ï¤ê¤Ë
172 .BR scalbln (3),
173 .BR scalblnf (3),
174 .BR scalblnl (3)
175 ¤Î»ÈÍѤ¬¿ä¾©¤µ¤ì¤Æ¤¤¤ë¡£
176 .BR scalb ()
177 ´Ø¿ô¤Ï 4.3BSD ¤ËͳÍ褹¤ë¡£
178
179 .BR scalbf ()
180 ¤È
181 .BR scalbl ()
182 ¤Ïɸ½à²½¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
183 ¤½¤ì¤Ë¤â´Ø¤ï¤é¤º¡¢
184 .BR scalbf ()
185 ¤Ï¤¤¤¯¤Ä¤«¤Î¾¤Î¥·¥¹¥Æ¥à¤Ë¸ºß¤¹¤ë¡£
186 .\" Looking at header files: scalbf() is present on the
187 .\" BSDs, Tru64, HP-UX 11, Irix 6.5; scalbl() is on HP-UX 11 and Tru64.
188 .SH ´ØÏ¢¹àÌÜ
189 .BR ldexp (3),
190 .BR scalbln (3)