OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / 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 .TH CACOSH 3 2011\-09\-15 "" "Linux Programmer's Manual"
14 .SH 名前
15 cacosh, cacoshf, cacoshl \- 複素数の逆双曲線余弦 (arc hyperbolic cosine)
16 .SH 書式
17 \fB#include <complex.h>\fP
18 .sp
19 \fBdouble complex cacosh(double complex \fP\fIz\fP\fB);\fP
20 .br
21 \fBfloat complex cacoshf(float complex \fP\fIz\fP\fB);\fP
22 .br
23 \fBlong double complex cacoshl(long double complex \fP\fIz\fP\fB);\fP
24 .sp
25 \fI\-lm\fP でリンクする。
26 .SH 説明
27 \fBcacosh\fP()  関数は複素数 \fIz\fP の逆双曲線余弦 (arc hyperbolic cosine) を計算する。 \fIy\ =\ cacosh(z)\fP ならば、 \fIz\ =\ ccosh(y)\fP が成立する。 \fIy\fP の虚部の値は区間 [\-pi,pi] から選択され、 \fIy\fP
28 の実部の値は非負の値が選択される。
29 .LP
30 次の関係が成立する:
31 .nf
32
33     cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z \- 1) / 2))
34 .fi
35 .SH バージョン
36 これらの関数は glibc バージョン 2.1 で初めて登場した。
37 .SH 準拠
38 C99.
39 .SH 例
40 .nf
41 /* "\-lm" でリンクする */
42
43 #include <complex.h>
44 #include <stdlib.h>
45 #include <unistd.h>
46 #include <stdio.h>
47
48 int
49 main(int argc, char *argv[])
50 {
51     double complex z, c, f;
52
53     if (argc != 3) {
54         fprintf(stderr, "Usage: %s <real> <imag>\en", argv[0]);
55         exit(EXIT_FAILURE);
56     }
57
58     z = atof(argv[1]) + atof(argv[2]) * I;
59
60     c = cacosh(z);
61     printf("cacosh() = %6.3f %6.3f*i\en", creal(c), cimag(c));
62
63     f = 2 * clog(csqrt((z + 1)/2) + csqrt((z \- 1)/2));
64     printf("formula  = %6.3f %6.3f*i\en", creal(f2), cimag(f2));
65
66     exit(EXIT_SUCCESS);
67 }
68 .fi
69 .SH 関連項目
70 \fBacosh\fP(3), \fBcabs\fP(3), \fBccosh\fP(3), \fBcimag\fP(3), \fBcomplex\fP(7)
71 .SH この文書について
72 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
73 である。プロジェクトの説明とバグ報告に関する情報は
74 http://www.kernel.org/doc/man\-pages/ に書かれている。