OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / 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 .\"
14 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
15 .\"         all rights reserved.
16 .\" Translated Thu Jul 24 00:43:35 JST 2003
17 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
18 .\"
19 .TH CATANH 3 2011\-09\-15 "" "Linux Programmer's Manual"
20 .SH 名前
21 catanh, catanhf, catanhl \- 複素数の逆双曲線正接 (arc tangents hyperbolic)
22 .SH 書式
23 \fB#include <complex.h>\fP
24 .sp
25 \fBdouble complex catanh(double complex \fP\fIz\fP\fB);\fP
26 .br
27 \fBfloat complex catanhf(float complex \fP\fIz\fP\fB);\fP
28 .br
29 \fBlong double complex catanhl(long double complex \fP\fIz\fP\fB);\fP
30 .sp
31 \fI\-lm\fP でリンクする。
32 .SH 説明
33 \fBcatanh\fP()  関数は複素数 \fIz\fP の逆双曲線正弦 (arc hyperbolic tangent) を計算する。 \fIy =
34 catanh(z)\fP ならば、 \fIz = ctanh(y)\fP が成立する。 \fIy\fP の虚部の値は区間 [\-pi/2,pi/2] から選択される。
35 .LP
36 次の関係が成立する:
37 .nf
38
39     catanh(z) = 0.5 * (clog(1 + z) \- clog(1 \- z))
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 = catanh(z);
67     printf("catanh() = %6.3f %6.3f*i\en", creal(c), cimag(c));
68
69     f = 0.5 * (clog(1 + z) \- clog(1 \- z));
70     printf("formula  = %6.3f %6.3f*i\en", creal(f2), cimag(f2));
71
72     exit(EXIT_SUCCESS);
73 }
74 .fi
75 .SH 関連項目
76 \fBatanh\fP(3), \fBcabs\fP(3), \fBcimag\fP(3), \fBctanh\fP(3), \fBcomplex\fP(7)
77 .SH この文書について
78 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
79 である。プロジェクトの説明とバグ報告に関する情報は
80 http://www.kernel.org/doc/man\-pages/ に書かれている。