OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man3 / cacosh.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 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
6 .\"         all rights reserved.
7 .\" Translated Thu Jul 24 00:26:52 JST 2003
8 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
9 .\"
10 .\"WORD:        hyperbolic      ÁжÊ(Àþ¤Î)
11 .\"WORD:        arc sine        µÕÀµ¸¹
12 .\"WORD:        arc cosine      µÕ;¸¹
13 .\"WORD:        arc tangent     µÕÀµÀÜ
14 .\"WORD:        real part       ¼ÂÉô
15 .\"WORD:        imaginary part  µõÉô
16 .\"
17 .TH CACOSH 3 2011-09-15 "" "Linux Programmer's Manual"
18 .SH Ì¾Á°
19 cacosh, cacoshf, cacoshl \- Ê£ÁÇ¿ô¤ÎµÕÁжÊÀþ;¸¹ (arc hyperbolic cosine)
20 .SH ½ñ¼°
21 .B #include <complex.h>
22 .sp
23 .BI "double complex cacosh(double complex " z );
24 .br
25 .BI "float complex cacoshf(float complex " z );
26 .br
27 .BI "long double complex cacoshl(long double complex " z );
28 .sp
29 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
30 .SH ÀâÌÀ
31 .BR cacosh ()
32 ´Ø¿ô¤ÏÊ£ÁÇ¿ô
33 .I z
34 ¤ÎµÕÁжÊÀþ;¸¹ (arc hyperbolic cosine) ¤ò·×»»¤¹¤ë¡£
35 \fIy\ =\ cacosh(z)\fP ¤Ê¤é¤Ð¡¢
36 \fIz\ =\ ccosh(y)\fP ¤¬À®Î©¤¹¤ë¡£
37 .I y
38 ¤ÎµõÉô¤ÎÃͤ϶è´Ö [\-pi,pi] ¤«¤éÁªÂò¤µ¤ì¡¢
39 .I y
40 ¤Î¼ÂÉô¤ÎÃͤÏÈóÉé¤ÎÃͤ¬ÁªÂò¤µ¤ì¤ë¡£
41 .LP
42 ¼¡¤Î´Ø·¸¤¬À®Î©¤¹¤ë:
43 .nf
44
45     cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z \- 1) / 2))
46 .fi
47 .SH ¥Ð¡¼¥¸¥ç¥ó
48 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
49 .SH ½àµò
50 C99.
51 .SH Îã
52 .nf
53 /* Link with "\-lm" */
54
55 #include <complex.h>
56 #include <stdlib.h>
57 #include <unistd.h>
58 #include <stdio.h>
59
60 int
61 main(int argc, char *argv[])
62 {
63     double complex z, c, f;
64
65     if (argc != 3) {
66         fprintf(stderr, "Usage: %s <real> <imag>\\n", argv[0]);
67         exit(EXIT_FAILURE);
68     }
69
70     z = atof(argv[1]) + atof(argv[2]) * I;
71
72     c = cacosh(z);
73     printf("cacosh() = %6.3f %6.3f*i\\n", creal(c), cimag(c));
74
75     f = 2 * clog(csqrt((z + 1)/2) + csqrt((z \- 1)/2));
76     printf("formula  = %6.3f %6.3f*i\\n", creal(f2), cimag(f2));
77
78     exit(EXIT_SUCCESS);
79 }
80 .fi
81 .SH ´ØÏ¢¹àÌÜ
82 .BR acosh (3),
83 .BR cabs (3),
84 .BR ccosh (3),
85 .BR cimag (3),
86 .BR complex (7)