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>
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.
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.
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
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" References consulted:
26 .\" Linux libc source code
27 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
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)
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>
44 .TH COSH 3 2010-09-20 "" "Linux Programmer's Manual"
47 .\"O cosh, coshf, coshl \- hyperbolic cosine function
48 cosh, coshf, coshl \- 双曲線余弦 (ハイパボリックコサイン) 関数
54 .BI "double cosh(double " x );
56 .BI "float coshf(float " x );
58 .BI "long double coshl(long double " x );
61 .\"O Link with \fI\-lm\fP.
65 .\"O Feature Test Macro Requirements for glibc (see
66 .\"O .BR feature_test_macros (7)):
68 .RB ( feature_test_macros (7)
76 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
77 _POSIX_C_SOURCE\ >=\ 200112L;
87 .\"O function returns the hyperbolic cosine of \fIx\fP, which
88 .\"O is defined mathematically as:
90 関数は双曲線余弦 (ハイパボリックコサイン) の値を返す。
94 cosh(x) = (exp(x) + exp(\-x)) / 2
96 .\"O .SH "RETURN VALUE"
98 .\"O On success, these functions return the hyperbolic cosine of
106 .\"O is a NaN, a NaN is returned.
112 .\"O is +0 or \-0, 1 is returned.
114 が +0 か \-0 の場合、 1 が返される。
118 .\"O is positive infinity or negative infinity,
119 .\"O positive infinity is returned.
121 が正の無限大か負の無限大の場合、正の無限大が返される。
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 ,
129 .\"O .RB + HUGE_VALL ,
131 結果がオーバーフローする場合、範囲エラーが発生し、
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 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
147 .\"O The following errors can occur:
150 .\"O Range error: result overflow
151 範囲エラー (range error): 結果がオーバーフローした
155 .\"O An overflow floating-point exception
156 .\"O .RB ( FE_OVERFLOW )
165 .\"O .SH "CONFORMING TO"
168 .\"O The variant returning
170 .\"O also conforms to
173 版の関数は SVr4, 4.3BSD にも準拠している。
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 以前では、オーバーフローが発生したときに、