OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.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 .\" Distributed under GPL
4 .\"
5 .\"*******************************************************************
6 .\"
7 .\" This file was generated with po4a. Translate the source file.
8 .\"
9 .\"*******************************************************************
10 .TH CATAN 3 2011\-09\-15 "" "Linux Programmer's Manual"
11 .SH 名前
12 catan, catanf, catanl \- 複素数の逆正接 (arc tangent)
13 .SH 書式
14 \fB#include <complex.h>\fP
15 .sp
16 \fBdouble complex catan(double complex \fP\fIz\fP\fB);\fP
17 .br
18 \fBfloat complex catanf(float complex \fP\fIz\fP\fB);\fP
19 .br
20 \fBlong double complex catanl(long double complex \fP\fIz\fP\fB);\fP
21 .sp
22 \fI\-lm\fP でリンクする。
23 .SH 説明
24 \fBcatan\fP() 関数は複素数 \fIz\fP の逆正接 (arc tangent) を計算する。
25 \fIy = catan(z)\fP ならば、 \fIz = ctan(y)\fP が成立する。
26 \fIy\fP の実部の値は区間 [\-pi/2,pi/2] から選択される。
27 .LP
28 次の関係が成立する:
29 .nf
30
31     catan(z) = (clog(1 + i * z) \- clog(1 \- i * z)) / (2 * i)
32 .fi
33 .SH バージョン
34 これらの関数は glibc バージョン 2.1 で初めて登場した。
35 .SH 準拠
36 C99.
37 .SH 例
38 .nf
39 /* "\-lm" でリンクする */
40
41 #include <complex.h>
42 #include <stdlib.h>
43 #include <unistd.h>
44 #include <stdio.h>
45
46 int
47 main(int argc, char *argv[])
48 {
49     double complex z, c, f;
50     double complex i = I;
51
52     if (argc != 3) {
53         fprintf(stderr, "Usage: %s <real> <imag>\en", argv[0]);
54         exit(EXIT_FAILURE);
55     }
56
57     z = atof(argv[1]) + atof(argv[2]) * I;
58
59     c = catan(z);
60     printf("catan() = %6.3f %6.3f*i\en", creal(c), cimag(c));
61
62     f = (clog(1 + i * z) \- clog(1 \- i * z)) / (2 * i);
63     printf("formula = %6.3f %6.3f*i\en", creal(f2), cimag(f2));
64
65     exit(EXIT_SUCCESS);
66 }
67 .fi
68 .SH 関連項目
69 \fBccos\fP(3), \fBclog\fP(3), \fBctan\fP(3), \fBcomplex\fP(7)