OSDN Git Service

83698b2a6e6aa5ef5c18edba4a846a80b9f8281a
[linuxjm/LDP_man-pages.git] / release / 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 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\" References consulted:
28 .\"     Linux libc source code
29 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30 .\"     386BSD man pages
31 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32 .\" Modified 1996-06-08 by aeb
33 .\" Modified 2002-07-27 by Walter Harms
34 .\" (walter.harms@informatik.uni-oldenburg.de)
35 .\"
36 .\"*******************************************************************
37 .\"
38 .\" This file was generated with po4a. Translate the source file.
39 .\"
40 .\"*******************************************************************
41 .\"
42 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
43 .\"         all rights reserved.
44 .\" Translated Sat, 13 Jul 1996 17:54:30 JST
45 .\"         by Kenji Kajiwara and Kentaro Ogawa
46 .\" Updated Tue Aug  5 23:16:48 JST 2003
47 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
48 .\" Updated & Modified Tue Feb 15 04:28:36 JST 2005
49 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
50 .\" Updated 2008-09-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
51 .\"
52 .TH COSH 3 2010\-09\-20 "" "Linux Programmer's Manual"
53 .SH 名前
54 cosh, coshf, coshl \- 双曲線余弦 (ハイパボリックコサイン) 関数
55 .SH 書式
56 .nf
57 \fB#include <math.h>\fP
58 .sp
59 \fBdouble cosh(double \fP\fIx\fP\fB);\fP
60 .br
61 \fBfloat coshf(float \fP\fIx\fP\fB);\fP
62 .br
63 \fBlong double coshl(long double \fP\fIx\fP\fB);\fP
64 .fi
65 .sp
66 \fI\-lm\fP でリンクする。
67 .sp
68 .in -4n
69 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
70 .in
71 .sp
72 .ad l
73 \fBcoshf\fP(), \fBcoshl\fP():
74 .RS 4
75 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
76 || _POSIX_C_SOURCE\ >=\ 200112L;
77 .br
78 or \fIcc\ \-std=c99\fP
79 .RE
80 .ad
81 .SH 説明
82 \fBcosh\fP()  関数は双曲線余弦 (ハイパボリックコサイン) の値を返す。 数学的には以下のように定義される.
83 .nf
84
85     cosh(x) = (exp(x) + exp(\-x)) / 2
86 .fi
87 .SH 返り値
88 成功すると、これらの関数は \fIx\fP の双曲線余弦を返す。
89
90 \fIx\fP が NaN の場合、NaN が返される。
91
92 \fIx\fP が +0 か \-0 の場合、1 が返される。
93
94 \fIx\fP が正の無限大か負の無限大の場合、正の無限大が返される。
95
96 結果がオーバーフローする場合、範囲エラーが発生し、 各関数はそれぞれ +\fBHUGE_VAL\fP, +\fBHUGE_VALF\fP,
97 +\fBHUGE_VALL\fP を返す。
98 .SH エラー
99 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
100 .PP
101 以下のエラーが発生する可能性がある。
102 .TP 
103 範囲エラー (range error): 結果のオーバーフロー
104 \fIerrno\fP に \fBERANGE\fP が設定される。 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
105 .SH 準拠
106 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD にも準拠している。
107 .SH バグ
108 glibc バージョン 2.3.4 以前では、オーバーフローが発生したときに、 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)
109 が上がらなかった。
110 .SH 関連項目
111 \fBacosh\fP(3), \fBasinh\fP(3), \fBatanh\fP(3), \fBccos\fP(3), \fBsinh\fP(3), \fBtanh\fP(3)
112 .SH この文書について
113 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
114 である。プロジェクトの説明とバグ報告に関する情報は
115 http://www.kernel.org/doc/man\-pages/ に書かれている。