OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man3 / catanh.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 CATANH 3 2011\-09\-15 "" "Linux Programmer's Manual"
14 .SH 名前
15 catanh, catanhf, catanhl \- 複素数の逆双曲線正接 (arc tangents hyperbolic)
16 .SH 書式
17 \fB#include <complex.h>\fP
18 .sp
19 \fBdouble complex catanh(double complex \fP\fIz\fP\fB);\fP
20 .br
21 \fBfloat complex catanhf(float complex \fP\fIz\fP\fB);\fP
22 .br
23 \fBlong double complex catanhl(long double complex \fP\fIz\fP\fB);\fP
24 .sp
25 \fI\-lm\fP でリンクする。
26 .SH 説明
27 \fBcatanh\fP()  関数は複素数 \fIz\fP の逆双曲線正弦 (arc hyperbolic tangent) を計算する。 \fIy =
28 catanh(z)\fP ならば、 \fIz = ctanh(y)\fP が成立する。 \fIy\fP の虚部の値は区間 [\-pi/2,pi/2] から選択される。
29 .LP
30 次の関係が成立する:
31 .nf
32
33     catanh(z) = 0.5 * (clog(1 + z) \- clog(1 \- z))
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 = catanh(z);
61     printf("catanh() = %6.3f %6.3f*i\en", creal(c), cimag(c));
62
63     f = 0.5 * (clog(1 + z) \- clog(1 \- z));
64     printf("formula  = %6.3f %6.3f*i\en", creal(f2), cimag(f2));
65
66     exit(EXIT_SUCCESS);
67 }
68 .fi
69 .SH 関連項目
70 \fBatanh\fP(3), \fBcabs\fP(3), \fBcimag\fP(3), \fBctanh\fP(3), \fBcomplex\fP(7)
71 .SH この文書について
72 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
73 である。プロジェクトの説明とバグ報告に関する情報は
74 http://www.kernel.org/doc/man\-pages/ に書かれている。