1 .\" Copyright 2002 Walter Harms(walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright (C) 2011 Michael Kerrisk <mtk.manpages@gamil.com>
3 .\" Distributed under GPL
5 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
6 .\" all rights reserved.
7 .\" Translated Thu Jul 24 00:26:52 JST 2003
8 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\"WORD: hyperbolic 双曲(線の)
12 .\"WORD: arc cosine 逆余弦
13 .\"WORD: arc tangent 逆正接
15 .\"WORD: imaginary part 虚部
17 .TH CACOSH 3 2011-09-15 "" "Linux Programmer's Manual"
20 .\"O cacosh, cacoshf, cacoshl \- complex arc hyperbolic cosine
21 cacosh, cacoshf, cacoshl \- 複素数の逆双曲線余弦 (arc hyperbolic cosine)
24 .B #include <complex.h>
26 .BI "double complex cacosh(double complex " z );
28 .BI "float complex cacoshf(float complex " z );
30 .BI "long double complex cacoshl(long double complex " z );
32 .\"O Link with \fI\-lm\fP.
38 .\"O function calculates the complex arc hyperpolic cosine of
40 .\"O If \fIy\ =\ cacosh(z)\fP, then \fIz\ =\ ccosh(y)\fP.
41 .\"O The imaginary part of
43 .\"O is chosen in the interval [\-pi,pi].
46 .\"O is chosen nonnegative.
50 の逆双曲線余弦 (arc hyperbolic cosine) を計算する。
51 \fIy\ =\ cacosh(z)\fP ならば、
52 \fIz\ =\ ccosh(y)\fP が成立する。
54 の虚部の値は区間 [\-pi,pi] から選択され、
62 cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z \- 1) / 2))
66 .\"O These functions first appeared in glibc in version 2.1.
67 これらの関数は glibc バージョン 2.1 で初めて登場した。
68 .\"O .SH "CONFORMING TO"
74 /* Link with "\-lm" */
82 main(int argc, char *argv[])
84 double complex z, c, f;
87 fprintf(stderr, "Usage: %s <real> <imag>\\n", argv[0]);
91 z = atof(argv[1]) + atof(argv[2]) * I;
94 printf("cacosh() = %6.3f %6.3f*i\\n", creal(c), cimag(c));
96 f = 2 * clog(csqrt((z + 1)/2) + csqrt((z \- 1)/2));
97 printf("formula = %6.3f %6.3f*i\\n", creal(f2), cimag(f2));