OSDN Git Service

df34c2a231865eadd77fa7cdba80c685e05f2a62
[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 2009-03-15 "" "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 .in -4n
44 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
45 .RB ( feature_test_macros (7)
46 »²¾È):
47 .in
48 .sp
49 .ad l
50 .BR scalb ():
51 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
52 .br
53 .BR scalbf (),
54 .BR scalbl ():
55 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
56 .ad b
57 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
58 .SH ÀâÌÀ
59 ¤³¤ì¤é¤Î´Ø¿ô¤ÏºÇ½é¤Î°ú¤­¿ô
60 .I x
61 ¤Ë
62 .B FLT_RADIX
63 ¤Î
64 .I exp
65 ¾è¤ò³Ý¤±¤ë
66 .RB ( FLT_RADIX
67 ¤Ï¤ª¤½¤é¤¯ 2 ¤Ç¤¢¤ë)¡£¤Ä¤Þ¤ê¡¢°Ê²¼¤Î¼°¤ÎÃͤòÊÖ¤¹¡£
68 .nf
69
70     x * FLT_RADIX ** exp
71 .fi
72
73 .B FLT_RADIX
74 ¤ÎÄêµÁ¤Ï
75 .I <float.h>
76 ¤ò¥¤¥ó¥¯¥ë¡¼¥É¤¹¤ë¤³¤È¤ÇÆÀ¤é¤ì¤ë¡£
77 .\" /usr/include ¤Ç¤Ï¤Ê¤¯¡¢gcc ¤Î lib ¤Ë¤¢¤ë¡£
78 .SH ÊÖ¤êÃÍ
79 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï \fIx\fP * \fBFLT_RADIX\fP ** \fIexp\fP ¤òÊÖ¤¹¡£
80
81 .I x
82 ¤«
83 .I exp
84 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
85
86 .I x
87 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Ç
88 .I exp
89 ¤¬Éé¤Î̵¸ÂÂç¤Ç¤Ê¤¤¾ì¹ç¡¢Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤¬ÊÖ¤µ¤ì¤ë¡£
90
91 .I x
92 ¤¬ +0 (\-0) ¤Ç
93 .I exp
94 ¤¬Àµ¤Î̵¸ÂÂç¤Ç¤Ê¤¤¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
95
96 .I x
97 ¤¬¥¼¥í¤Ç
98 .I exp
99 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
100 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
101
102 .I x
103 ¤¬Ìµ¸ÂÂç¤Ç
104 .I exp
105 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
106 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
107
108 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢
109 ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
110 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
111 .BR HUGE_VAL ,
112 .BR HUGE_VALF ,
113 .BR HUGE_VALL
114 ¤òÊÖ¤¹¡£Éä¹æ¤Ï
115 .I x
116 ¤ÈƱ¤¸¤Ë¤Ê¤ë¡£
117
118 ·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼¤¬È¯À¸¤·¡¢
119 ³Æ´Ø¿ô¤Ï 0 ¤òÊÖ¤¹¡£Éä¹æ¤Ï
120 .I x
121 ¤ÈƱ¤¸¤Ë¤Ê¤ë¡£
122 .SH ¥¨¥é¡¼
123 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
124 .BR math_error (7)
125 ¤ò»²¾È¤Î¤³¤È¡£
126 .PP
127 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
128 .TP
129 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤¬ 0 ¤Ç \fIexp\fP ¤¬Àµ¤Î̵¸ÂÂç¡¢\
130 ¤Þ¤¿¤Ï \fIx\fP ¤¬Àµ¤Î̵¸ÂÂç¤Ç \fIexp\fP ¤¬Éé¤Î̵¸ÂÂç
131 .\" .I errno
132 .\" is set to
133 .\" .BR EDOM .
134 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
135 .RB ( FE_INVALID )
136 ¤¬¾å¤¬¤ë¡£
137 .TP
138 ÈÏ°Ï¥¨¥é¡¼ (range error)¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
139 .\" .I errno
140 .\" is set to
141 .\" .BR ERANGE .
142 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
143 .RB ( FE_OVERFLOW )
144 ¤¬¾å¤¬¤ë¡£
145 .TP
146 ÈÏ°Ï¥¨¥é¡¼ (range error)¡¢¥¢¥ó¥À¡¼¥Õ¥í¡¼
147 .\" .I errno
148 .\" is set to
149 .\" .BR ERANGE .
150 ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
151 .RB ( FE_UNDERFLOW )
152 ¤¬¾å¤¬¤ë¡£
153 .PP
154 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
155 .I errno
156 ¤òÀßÄꤷ¤Ê¤¤¡£
157 .\" FIXME . Is it intentional that these functions do not set errno?
158 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803
159 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6804
160 .SH ½àµò
161 .BR scalb ()
162 ¤Ï POSIX.1-2001 ¤Çµ¬Äꤵ¤ì¤Æ¤¤¤ë¤¬¡¢ÇÑ»ßͽÄê¤È¤µ¤ì¤Æ¤¤¤ë¡£
163 POSIX.1-2008 ¤Ç¤Ï
164 .BR scalb ()
165 ¤Î»ÅÍͤϺï½ü¤µ¤ì¤Æ¤ª¤ê¡¢Âå¤ï¤ê¤Ë
166 .BR scalbln (3),
167 .BR scalblnf (3),
168 .BR scalblnl (3)
169 ¤Î»ÈÍѤ¬¿ä¾©¤µ¤ì¤Æ¤¤¤ë¡£
170 .BR scalb ()
171 ´Ø¿ô¤Ï 4.3BSD ¤ËͳÍ褹¤ë¡£
172
173 .BR scalbf ()
174 ¤È
175 .BR scalbl ()
176 ¤Ïɸ½à²½¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
177 ¤½¤ì¤Ë¤â´Ø¤ï¤é¤º¡¢
178 .BR scalbf ()
179 ¤Ï¤¤¤¯¤Ä¤«¤Î¾¤Î¥·¥¹¥Æ¥à¤Ë¸ºß¤¹¤ë¡£
180 .\" Looking at header files: scalbf() is present on the
181 .\" BSDs, Tru64, HP-UX 11, Irix 6.5; scalbl() is on HP-UX 11 and Tru64.
182 .SH ´ØÏ¢¹àÌÜ
183 .BR ldexp (3),
184 .BR scalbln (3)