OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man3 / cacosh.3
1 .\" Copyright 2002 Walter Harms(walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright (C) 2011 Michael Kerrisk <mtk.manpages@gamil.com>
3 .\"
4 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
5 .\" Distributed under GPL
6 .\" %%%LICENSE_END
7 .\"
8 .\"*******************************************************************
9 .\"
10 .\" This file was generated with po4a. Translate the source file.
11 .\"
12 .\"*******************************************************************
13 .\"
14 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
15 .\"         all rights reserved.
16 .\" Translated Thu Jul 24 00:26:52 JST 2003
17 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
18 .\"
19 .TH CACOSH 3 2011\-09\-15 "" "Linux Programmer's Manual"
20 .SH 名前
21 cacosh, cacoshf, cacoshl \- 複素数の逆双曲線余弦 (arc hyperbolic cosine)
22 .SH 書式
23 \fB#include <complex.h>\fP
24 .sp
25 \fBdouble complex cacosh(double complex \fP\fIz\fP\fB);\fP
26 .br
27 \fBfloat complex cacoshf(float complex \fP\fIz\fP\fB);\fP
28 .br
29 \fBlong double complex cacoshl(long double complex \fP\fIz\fP\fB);\fP
30 .sp
31 \fI\-lm\fP でリンクする。
32 .SH 説明
33 \fBcacosh\fP()  関数は複素数 \fIz\fP の逆双曲線余弦 (arc hyperbolic cosine) を計算する。 \fIy\ =\ cacosh(z)\fP ならば、 \fIz\ =\ ccosh(y)\fP が成立する。 \fIy\fP の虚部の値は区間 [\-pi,pi] から選択され、 \fIy\fP
34 の実部の値は非負の値が選択される。
35 .LP
36 次の関係が成立する:
37 .nf
38
39     cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z \- 1) / 2))
40 .fi
41 .SH バージョン
42 これらの関数は glibc バージョン 2.1 で初めて登場した。
43 .SH 準拠
44 C99.
45 .SH 例
46 .nf
47 /* "\-lm" でリンクする */
48
49 #include <complex.h>
50 #include <stdlib.h>
51 #include <unistd.h>
52 #include <stdio.h>
53
54 int
55 main(int argc, char *argv[])
56 {
57     double complex z, c, f;
58
59     if (argc != 3) {
60         fprintf(stderr, "Usage: %s <real> <imag>\en", argv[0]);
61         exit(EXIT_FAILURE);
62     }
63
64     z = atof(argv[1]) + atof(argv[2]) * I;
65
66     c = cacosh(z);
67     printf("cacosh() = %6.3f %6.3f*i\en", creal(c), cimag(c));
68
69     f = 2 * clog(csqrt((z + 1)/2) + csqrt((z \- 1)/2));
70     printf("formula  = %6.3f %6.3f*i\en", creal(f2), cimag(f2));
71
72     exit(EXIT_SUCCESS);
73 }
74 .fi
75 .SH 関連項目
76 \fBacosh\fP(3), \fBcabs\fP(3), \fBccosh\fP(3), \fBcimag\fP(3), \fBcomplex\fP(7)
77 .SH この文書について
78 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
79 である。プロジェクトの説明とバグ報告に関する情報は
80 http://www.kernel.org/doc/man\-pages/ に書かれている。