OSDN Git Service

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