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:43:35 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 CATANH 3 2011-09-15 "" "Linux Programmer's Manual"
20 .\"O catanh, catanhf, catanhl \- complex arc tangents hyperbolic
21 catanh, catanhf, catanhl \- 複素数の逆双曲線正接 (arc tangents hyperbolic)
24 .B #include <complex.h>
26 .BI "double complex catanh(double complex " z );
28 .BI "float complex catanhf(float complex " z );
30 .BI "long double complex catanhl(long double complex " z );
32 .\"O Link with \fI\-lm\fP.
38 .\"O function calculates the complex arc hyperbolic tangent of
40 .\"O If \fIy\ =\ catanh(z)\fP, then \fIz\ =\ ctanh(y)\fP.
41 .\"O The imaginary part of
43 .\"O is chosen in the interval [\-pi/2,pi/2].
47 の逆双曲線正弦 (arc hyperbolic tangent) を計算する。
48 \fIy = catanh(z)\fP ならば、 \fIz = ctanh(y)\fP が成立する。
50 の虚部の値は区間 [\-pi/2,pi/2] から選択される。
56 catanh(z) = 0.5 * (clog(1 + z) \- clog(1 \- z))
60 .\"O These functions first appeared in glibc in version 2.1.
61 これらの関数は glibc バージョン 2.1 で初めて登場した。
62 .\"O .SH "CONFORMING TO"
68 /* Link with "\-lm" */
76 main(int argc, char *argv[])
78 double complex z, c, f;
81 fprintf(stderr, "Usage: %s <real> <imag>\\n", argv[0]);
85 z = atof(argv[1]) + atof(argv[2]) * I;
88 printf("catanh() = %6.3f %6.3f*i\\n", creal(c), cimag(c));
90 f = 0.5 * (clog(1 + z) \- clog(1 \- z));
91 printf("formula = %6.3f %6.3f*i\\n", creal(f2), cimag(f2));