OSDN Git Service

7bd70c3171a7333248d2f93e15f235f20019b8b8
[linuxjm/LDP_man-pages.git] / draft / man3 / pow.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 1995-08-14 by Arnt Gulbrandsen <agulbra@troll.no>
31 .\" Modified 2002-07-27 by Walter Harms
32 .\"     (walter.harms@informatik.uni-oldenburg.de)
33 .\"
34 .\" Japanese Version Copyright (c) 2003, 2008  Akihiro MOTOKI
35 .\"         all rights reserved.
36 .\" Translated Mon Sep  7 23:27:52 JST 2003
37 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
38 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
39 .\"
40 .TH POW 3  2010-09-12 "" "Linux Programmer's Manual"
41 .\"O .SH NAME
42 .SH Ì¾Á°
43 .\"O pow, powf, powl \- power functions
44 pow, powf, powl \- Îß¾è´Ø¿ô
45 .\"O .SH SYNOPSIS
46 .SH ½ñ¼°
47 .nf
48 .B #include <math.h>
49 .sp
50 .BI "double pow(double " x ", double " y );
51 .br
52 .BI "float powf(float " x ", float " y );
53 .br
54 .BI "long double powl(long double " x ", long double " y );
55 .fi
56 .sp
57 .\"O Link with \fI\-lm\fP.
58 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
59 .sp
60 .in -4n
61 .\"O Feature Test Macro Requirements for glibc (see
62 .\"O .BR feature_test_macros (7)):
63 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
64 .RB ( feature_test_macros (7)
65 »²¾È):
66 .in
67 .sp
68 .ad l
69 .BR powf (),
70 .BR powl ():
71 .RS 4
72 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
73 _POSIX_C_SOURCE\ >=\ 200112L;
74 .br
75 or
76 .I cc\ -std=c99
77 .RE
78 .ad
79 .\"O .SH DESCRIPTION
80 .SH ÀâÌÀ
81 .\"O The
82 .\"O .BR pow ()
83 .\"O function returns the value of \fIx\fP raised to the
84 .\"O power of \fIy\fP.
85 .BR pow ()
86 ´Ø¿ô¤Ï \fIx\fP ¤Î \fIy\fP ¾è¤ÎÃͤòÊÖ¤¹¡£
87 .\"O .SH RETURN VALUE
88 .SH ÊÖ¤êÃÍ
89 .\"O On success, these functions return the value of
90 .\"O .I x
91 .\"O to the power of
92 .\"O .IR y .
93 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
94 .I x
95 ¤Î
96 .I y
97 ¾è¤ÎÃͤòÊÖ¤¹¡£
98
99 .\"O If
100 .\"O .I x
101 .\"O is a finite value less than 0, and
102 .\"O .I y
103 .\"O is a finite noninteger, a domain error occurs,
104 .I x
105 ¤¬ 0 Ì¤Ëþ¤ÎÍ­¸ÂÃͤÇ
106 .I y
107 ¤¬À°¿ô¤Ç¤Ê¤¤Í­¸ÂÃͤξì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
108 .\" The domain error is generated at least as far back as glibc 2.4
109 .\"O and a NaN is returned.
110 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
111
112 .\"O If the result overflows,
113 .\"O a range error occurs,
114 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢
115 ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
116 .\" The range error is generated at least as far back as glibc 2.4
117 .\"O and the functions return
118 .\"O .BR HUGE_VAL ,
119 .\"O .BR HUGE_VALF ,
120 .\"O or
121 .\"O .BR HUGE_VALL ,
122 .\"O respectively, with the mathematically correct sign.
123 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
124 .BR HUGE_VAL ,
125 .BR HUGE_VALF ,
126 .BR HUGE_VALL
127 ¤òÊÖ¤¹¡£ÊÖ¤êÃͤˤϿô³ØŪ¤ËÀµ¤·¤¤Éä¹æ¤¬ÉÕÍ¿¤µ¤ì¤ë¡£
128
129 .\"O If result underflows, and is not representable,
130 .\"O a range error occurs,
131 .\"O and 0.0 is returned.
132 ·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤·¡¢¤½¤ÎÃͤ¬É½¸½²Äǽ¤Ç¤Ê¤¤¾ì¹ç¡¢
133 ÈÏ°Ï¥¨¥é¡¼¤¬È¯À¸¤·¡¢ 0.0 ¤¬ÊÖ¤µ¤ì¤ë¡£
134 .\" POSIX.1 does not specify the sign of the zero,
135 .\" but http://sources.redhat.com/bugzilla/show_bug.cgi?id=2678
136 .\" points out that the zero has the wrong sign in some cases.
137
138 .\"O Except as specified below, if
139 .\"O .I x
140 .\"O or
141 .\"O .I y
142 .\"O is a NaN, the result is a NaN.
143 °Ê²¼¤Çµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¡¢
144 .I x
145 ¤«
146 .I y
147 ¤¬ NaN ¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠNaN ¤È¤Ê¤ë¡£
148
149 .\"O If
150 .\"O .I x
151 .\"O is +1, the result is 1.0 (even if
152 .\"O .I y
153 .\"O is a NaN).
154 .I x
155 ¤¬ +1 ¤Î¾ì¹ç¡¢
156 .RI ( y
157 ¤¬ NaN ¤Ç¤¢¤Ã¤¿¤È¤·¤Æ¤â) ÊÖ¤êÃͤϠ1.0 ¤È¤Ê¤ë¡£
158
159 .\"O If
160 .\"O .I y
161 .\"O is 0, the result is 1.0 (even if
162 .\"O .I x
163 .\"O is a NaN).
164 .I y
165 ¤¬ 0 ¤Î¾ì¹ç¡¢
166 .RI ( x
167 ¤¬ NaN ¤Ç¤¢¤Ã¤¿¤È¤·¤Æ¤â) ÊÖ¤êÃͤϠ1.0 ¤È¤Ê¤ë¡£
168
169 .\"O If
170 .\"O .I x
171 .\"O is +0 (\-0),
172 .\"O and
173 .\"O .I y
174 .\"O is an odd integer greater than 0,
175 .\"O the result is +0 (\-0).
176 .I x
177 ¤¬ +0 (\-0) ¤Ç
178 .I y
179 ¤¬ 0 ¤è¤êÂ礭¤Ê´ñ¿ô¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠ+0 (\-0) ¤È¤Ê¤ë¡£
180
181 .\"O If
182 .\"O .I x
183 .\"O is 0,
184 .\"O and
185 .\"O .I y
186 .\"O greater than 0 and not an odd integer,
187 .\"O the result is +0.
188 .I x
189 ¤¬ 0 ¤Ç¡¢
190 .I y
191 ¤¬ 0 ¤è¤êÂ礭¤¯´ñ¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢ÊÖ¤êÃͤϠ+0 ¤È¤Ê¤ë¡£
192
193 .\"O If
194 .\"O .I x
195 .\"O is \-1,
196 .\"O and
197 .\"O .I y
198 .\"O is positive infinity or negative infinity,
199 .\"O the result is 1.0.
200 .I x
201 ¤¬ \-1 ¤Ç¡¢
202 .I y
203 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠ1.0 ¤È¤Ê¤ë¡£
204
205 .\"O If the absolute value of
206 .\"O .I x
207 .\"O is less than 1,
208 .\"O and
209 .\"O .I y
210 .\"O is negative infinity,
211 .\"O the result is positive infinity.
212 .I x
213 ¤ÎÀäÂÐÃͤ¬ 1 Ì¤Ëþ¤Ç¡¢
214 .I y
215 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢ÊÖ¤êÃͤÏÀµ¤Î̵¸ÂÂç¤È¤Ê¤ë¡£
216
217 .\"O If the absolute value of
218 .\"O .I x
219 .\"O is greater than 1,
220 .\"O and
221 .\"O .I y
222 .\"O is negative infinity,
223 .\"O the result is +0.
224 .I x
225 ÀäÂÐÃͤ¬ 1 ¤è¤êÂ礭¤¯¡¢
226 .I y
227 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠ+0 ¤È¤Ê¤ë¡£
228
229 .\"O If the absolute value of
230 .\"O .I x
231 .\"O is less than 1,
232 .\"O and
233 .\"O .I y
234 .\"O is positive infinity,
235 .\"O the result is +0.
236 .I x
237 ¤ÎÀäÂÐÃͤ¬ 1 Ì¤Ëþ¤Ç¡¢
238 .I y
239 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠ+0 ¤È¤Ê¤ë¡£
240
241 .\"O If the absolute value of
242 .\"O .I x
243 .\"O is greater than 1,
244 .\"O and
245 .\"O .I y
246 .\"O is positive infinity,
247 .\"O the result is positive infinity.
248 .I x
249 ¤ÎÀäÂÐÃͤ¬ 1 ¤è¤êÂ礭¤¯¡¢
250 .I y
251 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢ÊÖ¤êÃͤÏÀµ¤Î̵¸ÂÂç¤È¤Ê¤ë¡£
252
253 .\"O If
254 .\"O .I x
255 .\"O is negative infinity,
256 .\"O and
257 .\"O .I y
258 .\"O is an odd integer less than 0,
259 .\"O the result is \-0.
260 .I x
261 ¤¬Éé¤Î̵¸ÂÂç¤Ç¡¢
262 .I y
263 ¤¬ 0 ¤è¤ê¾®¤µ¤¤´ñ¿ô¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠ\-0 ¤È¤Ê¤ë¡£
264
265 .\"O If
266 .\"O .I x
267 .\"O is negative infinity,
268 .\"O and
269 .\"O .I y
270 .\"O less than 0 and not an odd integer,
271 .\"O the result is +0.
272 .I x
273 ¤¬Éé¤Î̵¸ÂÂç¤Ç¡¢
274 .I y
275 ¤¬ 0 ¤è¤ê¾®¤µ¤¯´ñ¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢ÊÖ¤êÃͤϠ+0 ¤È¤Ê¤ë¡£
276
277 .\"O If
278 .\"O .I x
279 .\"O is negative infinity,
280 .\"O and
281 .\"O .I y
282 .\"O is an odd integer greater than 0,
283 .\"O the result is negative infinity.
284 .I x
285 ¤¬Éé¤Î̵¸ÂÂç¤Ç¡¢
286 .I y
287 ¤¬ 0 ¤è¤êÂ礭¤¤´ñ¿ô¤Î¾ì¹ç¡¢ÊÖ¤êÃͤÏÉé¤Î̵¸ÂÂç¤È¤Ê¤ë¡£
288
289 .\"O If
290 .\"O .I x
291 .\"O is negative infinity,
292 .\"O and
293 .\"O .I y
294 .\"O greater than 0 and not an odd integer,
295 .\"O the result is positive infinity.
296 .I x
297 ¤¬Éé¤Î̵¸ÂÂç¤Ç¡¢
298 .I y
299 ¤¬ 0 ¤è¤êÂ礭¤¯´ñ¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢ÊÖ¤êÃͤÏÀµ¤Î̵¸ÂÂç¤È¤Ê¤ë¡£
300
301 .\"O If
302 .\"O .I x
303 .\"O is positive infinity,
304 .\"O and
305 .\"O .I y
306 .\"O less than 0,
307 .\"O the result is +0.
308 .I x
309 ¤¬Àµ¤Î̵¸ÂÂç¤Ç¡¢
310 .I y
311 ¤¬ 0 Ì¤Ëþ¤Î¾ì¹ç¡¢ÊÖ¤êÃͤϠ+0 ¤È¤Ê¤ë¡£
312
313 .\"O If
314 .\"O .I x
315 .\"O is positive infinity,
316 .\"O and
317 .\"O .I y
318 .\"O greater than 0,
319 .\"O the result is positive infinity.
320 .I x
321 ¤¬Àµ¤Î̵¸ÂÂç¤Ç¡¢
322 .I y
323 ¤¬ 0 ¤è¤êÂ礭¤¤¾ì¹ç¡¢ÊÖ¤êÃͤÏÀµ¤Î̵¸ÂÂç¤È¤Ê¤ë¡£
324
325 .\"O If
326 .\"O .I x
327 .\"O is +0 or -0,
328 .\"O and
329 .\"O .I y
330 .\"O is an odd integer less than 0,
331 .\"O a pole error occurs and
332 .\"O .BR HUGE_VAL ,
333 .\"O .BR HUGE_VALF ,
334 .\"O or
335 .\"O .BR HUGE_VALL ,
336 .\"O is returned,
337 .\"O with the same sign as
338 .\"O .IR x .
339 .I x
340 ¤¬ +0 ¤« \-0 ¤Ç¡¢
341 .I y
342 ¤¬ 0 ¤è¤ê¾®¤µ¤¤´ñ¿ô¤Î¾ì¹ç¡¢
343 ¶Ë¥¨¥é¡¼ (pole error) ¤¬È¯À¸¤·¡¢ÊÖ¤êÃͤÏ
344 .BR HUGE_VAL ,
345 .BR HUGE_VALF ,
346 .BR HUGE_VALL
347 ¤È¤Ê¤ë¡£
348 .I x
349 ¤ÈƱ¤¸Éä¹æ¤¬ÉÕÍ¿¤µ¤ì¤ë¡£
350
351 .\"O If
352 .\"O .I x
353 .\"O is +0 or -0,
354 .\"O and
355 .\"O .I y
356 .\"O is less than 0 and not an odd integer,
357 .\"O a pole error occurs and
358 .I x
359 ¤¬ +0 ¤« \-0 ¤Ç¡¢
360 .I y
361 ¤¬ 0 ¤è¤ê¾®¤µ¤¯´ñ¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢
362 ¶Ë¥¨¥é¡¼¤¬È¯À¸¤·¡¢
363 .\" The pole error is generated at least as far back as glibc 2.4
364 .\"O .RB + HUGE_VAL ,
365 .\"O .RB + HUGE_VALF ,
366 .\"O or
367 .\"O .RB + HUGE_VALL ,
368 .\"O is returned.
369 ÊÖ¤êÃͤÏ
370 .BR + HUGE_VAL ,
371 .BR + HUGE_VALF ,
372 .BR + HUGE_VALL
373 ¤È¤Ê¤ë¡£
374 .\"O .SH ERRORS
375 .SH ¥¨¥é¡¼
376 .\" FIXME . review status of this error
377 .\" longstanding bug report for glibc:
378 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=369
379 .\" For negative x, and -large and +large y, glibc 2.8 gives incorrect
380 .\" results
381 .\" pow(-0.5,-DBL_MAX)=nan
382 .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result;
383 .\" FAIL (expected: range-error-overflow (ERANGE, FE_OVERFLOW); +INF)
384 .\"
385 .\" pow(-1.5,-DBL_MAX)=nan
386 .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result;
387 .\" FAIL (expected: range-error-underflow (ERANGE, FE_UNDERFLOW); +0)
388 .\"
389 .\" pow(-0.5,DBL_MAX)=nan
390 .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result;
391 .\" FAIL (expected: range-error-underflow (ERANGE, FE_UNDERFLOW); +0)
392 .\"
393 .\" pow(-1.5,DBL_MAX)=nan
394 .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result;
395 .\" FAIL (expected: range-error-overflow (ERANGE, FE_OVERFLOW); +INF)
396 .\"O See
397 .\"O .BR math_error (7)
398 .\"O for information on how to determine whether an error has occurred
399 .\"O when calling these functions.
400 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
401 .BR math_error (7)
402 ¤ò»²¾È¤Î¤³¤È¡£
403 .PP
404 .\"O The following errors can occur:
405 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
406 .TP
407 .\"O Domain error: \fIx\fP is negative, and \fIy\fP is a finite noninteger
408 Îΰ襨¥é¡¼: \fIx\fP ¤¬Éé¤Ç¡¢\fIy\fP ¤¬À°¿ô¤Ç¤Ê¤¤Í­¸ÂÃÍ
409 .\"O .I errno
410 .\"O is set to
411 .\"O .BR EDOM .
412 .\"O An invalid floating-point exception
413 .\"O .RB ( FE_INVALID )
414 .\"O is raised.
415 .I errno
416 ¤Ë
417 .B EDOM
418 ¤¬ÀßÄꤵ¤ì¤ë¡£
419 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
420 .RB ( FE_INVALID )
421 ¤¬¾å¤¬¤ë¡£
422 .TP
423 .\"O Pole error: \fIx\fP is zero, and \fIy\fP is negative
424 ¶Ë¥¨¥é¡¼: \fIx\fP ¤¬¥¼¥í¤Ç¡¢\fIy\fP ¤¬Éé
425 .\"O .I errno
426 .\"O is set to
427 .\"O .BR ERANGE
428 .\"O (but see BUGS).
429 .I errno
430 ¤Ë
431 .B ERANGE
432 ¤¬ÀßÄꤵ¤ì¤ë¡£
433 .\"O A divide-by-zero floating-point exception
434 .\"O .RB ( FE_DIVBYZERO )
435 .\"O is raised.
436 0 ¤Ë¤è¤ë½ü»» (divide-by-zero) ÉâÆ°¾®¿ôÅÀÎã³°
437 .RB ( FE_DIVBYZERO )
438 ¤¬¾å¤¬¤ë¡£
439 .TP
440 .\"O Range error: the result overflows
441 ÈÏ°Ï¥¨¥é¡¼: ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
442 .\"O .I errno
443 .\"O is set to
444 .\"O .BR ERANGE .
445 .\"O An overflow floating-point exception
446 .\"O .RB ( FE_OVERFLOW )
447 .\"O is raised.
448 .I errno
449 ¤Ë
450 .B ERANGE
451 ¤¬ÀßÄꤵ¤ì¤ë¡£
452 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
453 .RB ( FE_OVERFLOW )
454 ¤¬¾å¤¬¤ë¡£
455 .TP
456 .\"O Range error: the result underflows
457 ÈÏ°Ï¥¨¥é¡¼: ·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼
458 .\"O .I errno
459 .\"O is set to
460 .\"O .BR ERANGE .
461 .\"O An underflow floating-point exception
462 .\"O .RB ( FE_UNDERFLOW )
463 .\"O is raised.
464 .I errno
465 ¤Ë
466 .B ERANGE
467 ¤¬ÀßÄꤵ¤ì¤ë¡£
468 ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
469 .RB ( FE_UNDERFLOW )
470 ¤¬¾å¤¬¤ë¡£
471 .\"O .SH "CONFORMING TO"
472 .SH ½àµò
473 C99, POSIX.1-2001.
474 .\"O The variant returning
475 .\"O .I double
476 .\"O also conforms to
477 .\"O SVr4, 4.3BSD, C89.
478 .I double
479 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
480 .\"O .SH BUGS
481 .SH ¥Ð¥°
482 .\"O In glibc 2.9 and earlier,
483 .\"
484 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776
485 .\"O when a pole error occurs,
486 .\"O .I errno
487 .\"O is set to
488 .\"O .BR EDOM
489 .\"O instead of the POSIX-mandated
490 .\"O .BR ERANGE .
491 .\"O Since version 2.10,
492 .\" or possibly 2.9, I haven't found the source code change
493 .\" and I don't have a 2.9 system to test
494 .\"O glibc does the right thing.
495 glibc 2.9 ¤È¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢
496 ¶Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢POSIX ¤ÇÍ׵ᤵ¤ì¤Æ¤¤¤ë
497 .B ERANGE
498 ¤Ç¤Ï¤Ê¤¯
499 .B EDOM
500 ¤¬
501 .I errno
502 ¤ËÀßÄꤵ¤ì¤ë¡£
503 ¥Ð¡¼¥¸¥ç¥ó 2.10 °Ê¹ß¤Î glibc ¤Ç¤Ï¡¢Àµ¤·¤¤Æ°ºî¤ò¤¹¤ë¡£
504
505 .\"O If
506 .\"O .I x
507 .\"O is negative,
508 .\"O then large negative or positive
509 .\"O .I y
510 .\"O values yield a NaN as the function result, with
511 .\"O .I errno
512 .\"O set to
513 .\"O .BR EDOM ,
514 .\"O and an invalid
515 .\"O .RB ( FE_INVALID )
516 .\"O floating-point exception.
517 .I x
518 ¤¬Éé¤Î¾ì¹ç¡¢Â礭¤ÊÀµÉé¤ÎÃͤÎ
519 .I y
520 ¤¬Í¿¤¨¤é¤ì¤ë¤È¡¢´Ø¿ô¤Î·ë²Ì¤¬ NaN ¤È¤Ê¤ê¡¢
521 .I errno
522 ¤Ë
523 .B EDOM
524 ¤¬ÀßÄꤵ¤ì¡¢
525 ÉÔÀµÉâÆ°¾®¿ôÅÀÎã³°
526 .RB ( FE_INVALID )
527 ¤¬È¯À¸¤¹¤ë¡£
528 .\"O For example, with
529 .\"O .BR pow (),
530 .\"O one sees this behavior when the absolute value of
531 .\"O .I y
532 .\"O is greater than about 9.223373e18.
533 Î㤨¤Ð¡¢
534 .BR pow ()
535 ¤Ç¤Ï¡¢
536 .I y
537 ¤ÎÀäÂÐÃͤ¬Ìó 9.223373e18 ¤è¤êÂ礭¤¤¾ì¹ç¤Ë¤³¤Î¾õ¶·¤È¤Ê¤ë¡£
538 .\" see bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=3866
539 .\" and http://sources.redhat.com/bugzilla/show_bug.cgi?id=369
540
541 .\"O In version 2.3.2 and earlier,
542 glibc ¥Ð¡¼¥¸¥ç¥ó 2.3.2 °ÊÁ°¤Ç¤Ï¡¢
543 .\" FIXME . Actually, 2.3.2 is the earliest test result I have; so yet
544 .\" to confirm if this error occurs only in 2.3.2.
545 .\"O when an overflow or underflow error occurs, glibc's
546 .\"O .BR pow ()
547 .\"O generates a bogus invalid floating-point exception
548 .\"O .RB ( FE_INVALID )
549 .\"O in addition to the overflow or underflow exception.
550 ¥¢¥ó¥À¡¼¥Õ¥í¡¼¤ä¥¢¥ó¥À¡¼¥Õ¥í¡¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¾ì¹ç¡¢
551 glibc ¤Î
552 .BR pow ()
553 ¤Ï¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼Îã³°¤ä¥¢¥ó¥À¡¼¥Õ¥í¡¼Îã³°¤ò¾å¤²¤ë¤À¤±¤Ç¤Ê¤¯¡¢
554 ÉÔÀµÉâÆ°¾®¿ôÅÀÎã³°
555 .RB ( FE_INVALID )
556 ¤ò´Ö°ã¤Ã¤ÆȯÀ¸¤¹¤ë¡£
557 .\"O .SH "SEE ALSO"
558 .SH ´ØÏ¢¹àÌÜ
559 .BR cbrt (3),
560 .BR cpow (3),
561 .BR sqrt (3)