OSDN Git Service

378b2b0d571877020c8f82f08b298dd506e1d077
[linuxjm/LDP_man-pages.git] / release / 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  2010-09-12 "" "Linux Programmer's Manual"
34 .SH Ì¾Á°
35 expm1, expm1f, expm1l \- °ú¤­¿ô¤Î»Ø¿ô¤«¤é 1 ¤ò°ú¤¤¤¿ÃÍ
36 .SH ½ñ¼°
37 .nf
38 .B #include <math.h>
39 .sp
40 .BI "double expm1(double " x );
41 .br
42 .BI "float expm1f(float " x );
43 .br
44 .BI "long double expm1l(long double " x );
45 .sp
46 .fi
47 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
48 .sp
49 .in -4n
50 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
51 .RB ( feature_test_macros (7)
52 »²¾È):
53 .in
54 .sp
55 .ad l
56 .BR expm1 ():
57 .RS 4
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
59 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
60 _POSIX_C_SOURCE\ >=\ 200112L;
61 .br
62 or
63 .I cc\ -std=c99
64 .RE
65 .br
66 .BR expm1f (),
67 .BR expm1l ():
68 .RS 4
69 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
70 _POSIX_C_SOURCE\ >=\ 200112L;
71 .br
72 or
73 .I cc\ -std=c99
74 .RE
75 .ad b
76 .SH ÀâÌÀ
77 .BI expm1( x )
78 ¤Ï°Ê²¼¤ÈÅù¤·¤¤ÃͤòÊÖ¤¹¡£
79 .nf
80
81     exp(x) \- 1
82
83 .fi
84 \fIx\fP ¤¬ 0 ¤Ë¶á¤¯¡¢
85 .I "exp(x) \- 1"
86 ¤¬°ú¤­»»»þ¤Î·åÍî¤Á¤Î¤¿¤á¤ËÉÔÀµ³Î¤È¤Ê¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢
87 Àµ³Î¤ÊÃͤ¬·×»»¤Ç¤­¤ëÊýË¡¤¬ÍѤ¤¤é¤ì¤ë¡£
88 .SH ÊÖ¤êÃÍ
89 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
90 .I "exp(x)\ \-\ 1"
91 ¤òÊÖ¤¹¡£
92
93 .I x
94 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
95
96 .I x
97 ¤¬ +0 (\-0) ¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
98
99 .I x
100 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Àµ¤Î̵¸ÂÂ礬ÊÖ¤µ¤ì¤ë¡£
101
102 .I x
103 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤ë¡£
104
105 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
106 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
107 .RB - HUGE_VAL ,
108 .RB - HUGE_VALF ,
109 .RB - HUGE_VALL
110 ¤òÊÖ¤¹¡£
111 .SH ¥¨¥é¡¼
112 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
113 .BR math_error (7)
114 ¤ò»²¾È¤Î¤³¤È¡£
115 .PP
116 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
117 .TP
118 ÈÏ°Ï¥¨¥é¡¼ (range error)¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Î¾ì¹ç
119 .I errno
120 ¤Ë
121 .B ERANGE
122 ¤¬ÀßÄꤵ¤ì¤ë (¡Ö¥Ð¥°¡×¤ÎÀá¤â»²¾È)¡£
123 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
124 .RB ( FE_OVERFLOW )
125 ¤¬¾å¤¬¤ë¡£
126 .PP
127 .\"
128 .\" POSIX.1 specifies an optional range error (underflow) if
129 .\" x is subnormal.  Glibc does not implement this.
130 .SH ½àµò
131 C99, POSIX.1-2001.
132 .\" BSD.
133 .SH ¥Ð¥°
134 .I x
135 ¤¬Éé¤ÎÂ礭¤ÊÃͤξì¹ç (¤³¤Î¾ì¹ç¤Ë¤Ï´Ø¿ô¤Î·ë²Ì¤Ï \-1 ¤Ë¶áÉÕ¤¤¤Æ¤¤¤¯)¡¢
136 .BR expm1 ()
137 ¤Ï´Ö°ã¤Ã¤Æ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°¤ò¾å¤²¤ë¤³¤È¤¬¤¢¤ë¡£
138 .\" FIXME .
139 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6778
140
141 .I x
142 ¤¬Àµ¤ÎÂ礭¤ÊÃͤξì¹ç¡¢
143 .BR expm1 ()
144 ¤Ï´üÂÔÄ̤ê¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼Îã³°¤À¤±¤Ç¤Ê¤¯
145 ´Ö°ã¤Ã¤ÆÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°¤ò¾å¤²¡¢
146 Àµ¤Î̵¸ÂÂç¤Ç¤Ï¤Ê¤¯ NaN ¤òÊÖ¤¹¤³¤È¤¬¤¢¤ë¡£
147 .\" FIXME .
148 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6814
149 .\" e.g., expm1(1e5) through expm1(1.00199970127e5),
150 .\" but not expm1(1.00199970128e5) and beyond.
151
152 .\" It looks like the fix was in 2.11, or possibly 2.12.
153 .\" I have no test system for 2.11, but 2.12 passes.
154 .\" From the source (sysdeps/i386/fpu/s_expm1.S) it looks
155 .\" like the changes were in 2.11.
156 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6788
157 ¥Ð¡¼¥¸¥ç¥ó 2.11 ¤è¤êÁ°¤Î glibc ¤Î¼ÂÁõ¤Ç¤Ï¡¢
158 ÈÏ°Ï¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ë¡¢
159 .I errno
160 ¤Ë
161 .B ERANGE
162 ¤¬ÀßÄꤵ¤ì¤Ê¤«¤Ã¤¿¡£
163 .SH ´ØÏ¢¹àÌÜ
164 .BR exp (3),
165 .BR log (3),
166 .BR log1p (3)