OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / cosh.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 1996-06-08 by aeb
31 .\" Modified 2002-07-27 by Walter Harms
32 .\" (walter.harms@informatik.uni-oldenburg.de)
33 .\"
34 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
35 .\"         all rights reserved.
36 .\" Translated Sat, 13 Jul 1996 17:54:30 JST
37 .\"         by Kenji Kajiwara and Kentaro Ogawa
38 .\" Updated Tue Aug  5 23:16:48 JST 2003
39 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
40 .\" Updated & Modified Tue Feb 15 04:28:36 JST 2005
41 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
42 .\" Updated 2008-09-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
43 .\"
44 .TH COSH 3 2010-09-20 ""  "Linux Programmer's Manual"
45 .\"O .SH NAME
46 .SH Ì¾Á°
47 .\"O cosh, coshf, coshl \- hyperbolic cosine function
48 cosh, coshf, coshl \- ÁжÊÀþ;¸¹ (¥Ï¥¤¥Ñ¥Ü¥ê¥Ã¥¯¥³¥µ¥¤¥ó) ´Ø¿ô
49 .\"O .SH SYNOPSIS
50 .SH ½ñ¼°
51 .nf
52 .B #include <math.h>
53 .sp
54 .BI "double cosh(double " x );
55 .br
56 .BI "float coshf(float " x );
57 .br
58 .BI "long double coshl(long double " x );
59 .fi
60 .sp
61 .\"O Link with \fI\-lm\fP.
62 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
63 .sp
64 .in -4n
65 .\"O Feature Test Macro Requirements for glibc (see
66 .\"O .BR feature_test_macros (7)):
67 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
68 .RB ( feature_test_macros (7)
69 »²¾È):
70 .in
71 .sp
72 .ad l
73 .BR coshf (),
74 .BR coshl ():
75 .RS 4
76 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
77 _POSIX_C_SOURCE\ >=\ 200112L;
78 .br
79 or
80 .I cc\ -std=c99
81 .RE
82 .ad
83 .\"O .SH DESCRIPTION
84 .SH ÀâÌÀ
85 .\"O The
86 .\"O .BR cosh ()
87 .\"O function returns the hyperbolic cosine of \fIx\fP, which
88 .\"O is defined mathematically as:
89 .BR cosh ()
90 ´Ø¿ô¤ÏÁжÊÀþ;¸¹ (¥Ï¥¤¥Ñ¥Ü¥ê¥Ã¥¯¥³¥µ¥¤¥ó) ¤ÎÃͤòÊÖ¤¹¡£
91 ¿ô³ØŪ¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤ë.
92 .nf
93
94     cosh(x) = (exp(x) + exp(\-x)) / 2
95 .fi
96 .\"O .SH "RETURN VALUE"
97 .SH ÊÖ¤êÃÍ
98 .\"O On success, these functions return the hyperbolic cosine of
99 .\"O .IR x .
100 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
101 .I x
102 ¤ÎÁжÊÀþ;¸¹¤òÊÖ¤¹¡£
103
104 .\"O If
105 .\"O .I x
106 .\"O is a NaN, a NaN is returned.
107 .I x
108 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
109
110 .\"O If
111 .\"O .I x
112 .\"O is +0 or \-0, 1 is returned.
113 .I x
114 ¤¬ +0 ¤« \-0 ¤Î¾ì¹ç¡¢ 1 ¤¬ÊÖ¤µ¤ì¤ë¡£
115
116 .\"O If
117 .\"O .I x
118 .\"O is positive infinity or negative infinity,
119 .\"O positive infinity is returned.
120 .I x
121 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢Àµ¤Î̵¸ÂÂ礬ÊÖ¤µ¤ì¤ë¡£
122
123 .\"O If the result overflows,
124 .\"O a range error occurs,
125 .\"O and the functions return
126 .\"O .RB + HUGE_VAL ,
127 .\"O .RB + HUGE_VALF ,
128 .\"O or
129 .\"O .RB + HUGE_VALL ,
130 .\"O respectively.
131 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼¤¬È¯À¸¤·¡¢
132 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
133 .RB + HUGE_VAL ,
134 .RB + HUGE_VALF ,
135 .RB + HUGE_VALL
136 ¤òÊÖ¤¹¡£
137 .\"O .SH ERRORS
138 .SH ¥¨¥é¡¼
139 .\"O See
140 .\"O .BR math_error (7)
141 .\"O for information on how to determine whether an error has occurred
142 .\"O when calling these functions.
143 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
144 .BR math_error (7)
145 ¤ò»²¾È¤Î¤³¤È¡£
146 .PP
147 .\"O The following errors can occur:
148 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
149 .TP
150 .\"O Range error: result overflow
151 ÈÏ°Ï¥¨¥é¡¼ (range error): ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤·¤¿
152 .\"O .I errno
153 .\"O is set to
154 .\"O .BR ERANGE .
155 .\"O An overflow floating-point exception
156 .\"O .RB ( FE_OVERFLOW )
157 .\"O is raised.
158 .I errno
159 ¤Ë
160 .B ERANGE
161 ¤¬ÀßÄꤵ¤ì¤ë¡£
162 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
163 .RB ( FE_OVERFLOW )
164 ¤¬¾å¤¬¤ë¡£
165 .\"O .SH "CONFORMING TO"
166 .SH ½àµò
167 C99, POSIX.1-2001.
168 .\"O The variant returning
169 .\"O .I double
170 .\"O also conforms to
171 .\"O SVr4, 4.3BSD.
172 .I double
173 ÈǤδؿô¤Ï SVr4, 4.3BSD ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
174 .\"O .SH BUGS
175 .SH ¥Ð¥°
176 .\"O In glibc version 2.3.4 and earlier,
177 .\"O an overflow floating-point
178 .\"O .RB ( FE_OVERFLOW  )
179 .\"O exception is not raised when an overflow occurs.
180 glibc ¥Ð¡¼¥¸¥ç¥ó 2.3.4 °ÊÁ°¤Ç¤Ï¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¬È¯À¸¤·¤¿¤È¤­¤Ë¡¢
181 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
182 .RB ( FE_OVERFLOW )
183 ¤¬¾å¤¬¤é¤Ê¤«¤Ã¤¿¡£
184 .\"O .SH "SEE ALSO"
185 .SH ´ØÏ¢¹àÌÜ
186 .BR acosh (3),
187 .BR asinh (3),
188 .BR atanh (3),
189 .BR ccos (3),
190 .BR sinh (3),
191 .BR tanh (3)