OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / man3 / logb.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 .\" Inspired by a page by Walter Harms created 2002-08-10
26 .\"
27 .\" Japanese Version Copyright (c) 2005 Yuichi SATO
28 .\"         all rights reserved.
29 .\" Translated Sat Jan 29 06:47:42 JST 2005
30 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
31 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
32 .\"
33 .\"WORD:        exponent        »Ø¿ôÉô
34 .\"WORD:        radix   ´ð¿ô
35 .\"WORD:        subnormal       ÈóÀµµ¬²½¤Î
36 .\"
37 .TH LOGB 3 2010-09-20 "" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 logb, logbf, logbl \- ÉâÆ°¾®¿ôÅÀ¿ô¤Î»Ø¿ô¤ò¼èÆÀ¤¹¤ë
40 .SH ½ñ¼°
41 .B #include <math.h>
42 .sp
43 .BI "double logb(double " x );
44 .br
45 .BI "float logbf(float " x );
46 .br
47 .BI "long double logbl(long double " x );
48 .sp
49 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
50 .sp
51 .in -4n
52 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
53 .RB ( feature_test_macros (7)
54 »²¾È):
55 .in
56 .sp
57 .ad l
58 .BR logb ():
59 .RS 4
60 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
61 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
62 _POSIX_C_SOURCE\ >=\ 200112L;
63 .br
64 or
65 .I cc\ -std=c99
66 .RE
67 .br
68 .BR logbf (),
69 .BR logbl ():
70 .RS 4
71 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
72 _POSIX_C_SOURCE\ >=\ 200112L;
73 .br
74 or
75 .I cc\ -std=c99
76 .RE
77 .ad b
78 .SH ÀâÌÀ
79 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢
80 .I x
81 ¤ÎÉâÆ°¾®¿ôÅÀ¤ÎÆâÉôɽ¸½¤«¤é»Ø¿ôÉô¤òÃê½Ð¤·¡¢ÉâÆ°¾®¿ôÅÀ¿ôÃͤȤ·¤ÆÊÖ¤¹¡£
82 .I <float.h>
83 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÀ°¿ôÄê¿ô
84 .B FLT_RADIX
85 ¤Ï¡¢¥·¥¹¥Æ¥à¤ÎÉâÆ°¾®¿ôÅÀɽ¸½¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ë´ð¿ô¤òɽ¤¹¡£
86 .B FLT_RADIX
87 ¤¬ 2 ¤Î¾ì¹ç¡¢
88 .BI logb( x )
89 ¤Ï
90 .BI floor(log2( x ))\fR
91 ¤ÈÅù¤·¤¤¤¬¡¢¸å¼Ô¤ÎÊý¤¬¤¿¤Ö¤ó¹â®¤Ç¤¢¤ë¡£
92 .LP
93 .I x
94 ¤¬ÈóÀµµ¬²½¿ô¤Î¾ì¹ç¡¢
95 .BR logb ()
96 ¤Ï
97 .I x
98 ¤¬Àµµ¬²½¤µ¤ì¤¿¾ì¹ç¤Î»Ø¿ô¤òÊÖ¤¹¡£
99 .SH ÊÖ¤êÃÍ
100 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
101 .I x
102 ¤Î»Ø¿ôÉô¤òÊÖ¤¹¡£
103
104 .I x
105 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
106
107 .I x
108 ¤¬ 0 ¤Î¾ì¹ç¡¢¶Ë¥¨¥é¡¼ (pole error) ¤¬È¯À¸¤·¡¢
109 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
110 .RB - HUGE_VAL ,
111 .RB - HUGE_VALF ,
112 .RB - HUGE_VALL
113 ¤òÊÖ¤¹¡£
114
115 .I x
116 ¤¬Éé¤Î̵¸ÂÂ礫Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Àµ¤Î̵¸ÂÂ礬ÊÖ¤µ¤ì¤ë¡£
117 .\" .SH ÊÖ¤êÃÍ
118 .\" ¤³¤ì¤é¤Î´Ø¿ô¤Ï°ú¤­¿ô¤Î»Ø¿ôÉô¤òÊÖ¤¹¡£
119 .SH ¥¨¥é¡¼
120 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
121 .BR math_error (7)
122 ¤ò»²¾È¤Î¤³¤È¡£
123 .PP
124 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
125 .TP
126 ¶Ë¥¨¥é¡¼ (pole error): \fIx\fP ¤¬ 0 ¤Ç¤¢¤ë
127 .\" .I errno
128 .\" is set to
129 .\" .BR ERANGE .
130 0 ¤Ë¤è¤ë½ü»» (divide-by-zero) ÉâÆ°¾®¿ôÅÀÎã³°
131 .RB ( FE_DIVBYZERO )
132 ¤¬¾å¤¬¤ë¡£
133 .PP
134 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
135 .I errno
136 ¤òÀßÄꤷ¤Ê¤¤¡£
137 .\" FIXME . Is it intentional that these functions do not set errno?
138 .\" log(), log2(), log10() do set errno
139 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6793
140 .\"
141 .\" .SH ÍúÎò
142 .\" .BR logb ()
143 .\" ´Ø¿ô¤Ï 4.3BSD ¤ÇƳÆþ¤µ¤ì¤¿¡£
144 .\" 4.3BSD ¥Þ¥Ë¥å¥¢¥ë¤Î IEEE.3 ¤ò»²¾È¤¹¤ë¤³¤È¡£
145 .SH ½àµò
146 C99, POSIX.1-2001.
147 .SH ´ØÏ¢¹àÌÜ
148 .BR ilogb (3),
149 .BR log (3)