OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man3 / expm1.3
1 .\" Copyright 1995 Jim Van Zandt <jrv@vanzandt.mv.com>
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 .\" Modified 2002-07-27 Walter Harms
26 .\"     (walter.harms@informatik.uni-oldenburg.de)
27 .\"
28 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
29 .\" Translated Mon May 18 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
30 .\" Update Tue Sep 23 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
31 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
32 .\"
33 .TH EXPM1 3  2008-08-05 "" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH Ì¾Á°
36 .\"O expm1, expm1f, expm1l \- exponential minus 1
37 expm1, expm1f, expm1l \- °ú¤­¿ô¤Î»Ø¿ô¤«¤é 1 ¤ò°ú¤¤¤¿ÃÍ
38 .\"O .SH SYNOPSIS
39 .SH ½ñ¼°
40 .nf
41 .B #include <math.h>
42 .sp
43 .BI "double expm1(double " x );
44 .br
45 .BI "float expm1f(float " x );
46 .br
47 .BI "long double expm1l(long double " x );
48 .sp
49 .fi
50 .\"O Link with \fI\-lm\fP.
51 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
52 .sp
53 .in -4n
54 .\"O Feature Test Macro Requirements for glibc (see
55 .\"O .BR feature_test_macros (7)):
56 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
57 .RB ( feature_test_macros (7)
58 »²¾È):
59 .in
60 .sp
61 .ad l
62 .BR expm1 ():
63 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE; or
64 .I cc\ -std=c99
65 .br
66 .BR expm1f (),
67 .BR expm1l ():
68 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
69 .I cc\ -std=c99
70 .ad b
71 .\"O .SH DESCRIPTION
72 .SH ÀâÌÀ
73 .\"O .I expm1(x)
74 .\"O returns a value equivalent to
75 .BI expm1( x )
76 ¤Ï°Ê²¼¤ÈÅù¤·¤¤ÃͤòÊÖ¤¹¡£
77 .nf
78
79     exp(x) \- 1
80
81 .fi
82 .\"O It is
83 .\"O computed in a way that is accurate even if the value of \fIx\fP is near
84 .\"O zero\(ema case where
85 .\"O .I "exp(x) \- 1"
86 .\"O would be inaccurate due to
87 .\"O subtraction of two numbers that are nearly equal.
88 \fIx\fP ¤¬ 0 ¤Ë¶á¤¯¡¢
89 .I "exp(x) \- 1"
90 ¤¬°ú¤­»»»þ¤Î·åÍî¤Á¤Î¤¿¤á¤ËÉÔÀµ³Î¤È¤Ê¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢
91 Àµ³Î¤ÊÃͤ¬·×»»¤Ç¤­¤ëÊýË¡¤¬ÍѤ¤¤é¤ì¤ë¡£
92 .\"O .SH RETURN VALUE
93 .SH ÊÖ¤êÃÍ
94 .\"O On success, these functions return
95 .\"O .IR "exp(x)\ \-\ 1" .
96 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
97 .I "exp(x)\ \-\ 1"
98 ¤òÊÖ¤¹¡£
99
100 .\"O If
101 .\"O .I x
102 .\"O is a NaN,
103 .\"O a NaN is returned.
104 .I x
105 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
106
107 .\"O If
108 .\"O .I x
109 .\"O is +0 (\-0),
110 .\"O +0 (\-0) is returned.
111 .I x
112 ¤¬ +0 (\-0) ¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
113
114 .\"O If
115 .\"O .I x
116 .\"O is positive infinity, positive infinity is returned.
117 .I x
118 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Àµ¤Î̵¸ÂÂ礬ÊÖ¤µ¤ì¤ë¡£
119
120 .\"O If
121 .\"O .I x
122 .\"O is negative infinity, \-1 is returned.
123 .I x
124 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤ë¡£
125
126 .\"O If the result overflows, a range error occurs,
127 .\"O and the functions return
128 .\"O .RB - HUGE_VAL ,
129 .\"O .RB - HUGE_VALF ,
130 .\"O or
131 .\"O .RB - HUGE_VALL ,
132 .\"O respectively.
133 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
134 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
135 .RB - HUGE_VAL ,
136 .RB - HUGE_VALF ,
137 .RB - HUGE_VALL
138 ¤òÊÖ¤¹¡£
139 .\"O .SH ERRORS
140 .SH ¥¨¥é¡¼
141 .\"O See
142 .\"O .BR math_error (7)
143 .\"O for information on how to determine whether an error has occurred
144 .\"O when calling these functions.
145 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
146 .BR math_error (7)
147 ¤ò»²¾È¤Î¤³¤È¡£
148 .PP
149 .\"O The following errors can occur:
150 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
151 .TP
152 .\"O Range error, overflow
153 ÈÏ°Ï¥¨¥é¡¼ (range error)¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Î¾ì¹ç
154 .\" .I errno
155 .\" is set to
156 .\" .BR ERANGE .
157 .\"O An overflow floating-point exception
158 .\"O .RB ( FE_OVERFLOW )
159 .\"O is raised.
160 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
161 .RB ( FE_OVERFLOW )
162 ¤¬¾å¤¬¤ë¡£
163 .PP
164 .\"O These functions do not set
165 .\"O .IR errno .
166 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
167 .I errno
168 ¤òÀßÄꤷ¤Ê¤¤¡£
169 .\" FIXME . Is it intentional that these functions do not set errno?
170 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6788
171 .\"
172 .\"
173 .\" POSIX.1 specifies an optional range error (underflow) if
174 .\" x is subnormal.  Glibc does not implement this.
175 .\"O .SH "CONFORMING TO"
176 .SH ½àµò
177 C99, POSIX.1-2001.
178 .\" BSD.
179 .\"O .SH BUGS
180 .SH ¥Ð¥°
181 .\"O For some large negative
182 .\"O .I x
183 .\"O values (where the function result approaches \-1),
184 .\"O .BR expm1 ()
185 .\"O raises a bogus underflow floating-point exception.
186 .I x
187 ¤¬Éé¤ÎÂ礭¤ÊÃͤξì¹ç (¤³¤Î¾ì¹ç¤Ë¤Ï´Ø¿ô¤Î·ë²Ì¤Ï \-1 ¤Ë¶áÉÕ¤¤¤Æ¤¤¤¯)¡¢
188 .BR expm1 ()
189 ¤Ï´Ö°ã¤Ã¤Æ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°¤ò¾å¤²¤ë¤³¤È¤¬¤¢¤ë¡£
190 .\" FIXME .
191 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6778
192
193 .\"O For some large positive
194 .\"O .I x
195 .\"O values,
196 .\"O .BR expm1 ()
197 .\"O raises a bogus invalid floating-point exception in addition to the expected
198 .\"O overflow exception, and returns a NaN instead of positive infinity.
199 .I x
200 ¤¬Àµ¤ÎÂ礭¤ÊÃͤξì¹ç¡¢
201 .BR expm1 ()
202 ¤Ï´üÂÔÄ̤ê¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼Îã³°¤À¤±¤Ç¤Ê¤¯
203 ´Ö°ã¤Ã¤ÆÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°¤ò¾å¤²¡¢
204 Àµ¤Î̵¸ÂÂç¤Ç¤Ï¤Ê¤¯ NaN ¤òÊÖ¤¹¤³¤È¤¬¤¢¤ë¡£
205 .\" FIXME .
206 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6814
207 .\" e.g., expm1(1e5) through expm1(1.00199970127e5),
208 .\" but not expm1(1.00199970128e5) and beyond.
209 .\"O .SH "SEE ALSO"
210 .SH ´ØÏ¢¹àÌÜ
211 .BR exp (3),
212 .BR log (3),
213 .BR log1p (3)