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
5 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
6 .\" all rights reserved.
7 .\" Translated Thu Jul 24 00:43:35 JST 2003
8 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\"WORD: hyperbolic ÁжÊ(Àþ¤Î)
11 .\"WORD: arc sine µÕÀµ¸¹
12 .\"WORD: arc cosine µÕ;¸¹
13 .\"WORD: arc tangent µÕÀµÀÜ
14 .\"WORD: real part ¼ÂÉô
15 .\"WORD: imaginary part µõÉô
17 .TH CATANH 3 2011-09-15 "" "Linux Programmer's Manual"
19 catanh, catanhf, catanhl \- Ê£ÁÇ¿ô¤ÎµÕÁжÊÀþÀµÀÜ (arc tangents hyperbolic)
21 .B #include <complex.h>
23 .BI "double complex catanh(double complex " z );
25 .BI "float complex catanhf(float complex " z );
27 .BI "long double complex catanhl(long double complex " z );
29 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
34 ¤ÎµÕÁжÊÀþÀµ¸¹ (arc hyperbolic tangent) ¤ò·×»»¤¹¤ë¡£
35 \fIy = catanh(z)\fP ¤Ê¤é¤Ð¡¢ \fIz = ctanh(y)\fP ¤¬À®Î©¤¹¤ë¡£
37 ¤ÎµõÉô¤ÎÃͤ϶è´Ö [\-pi/2,pi/2] ¤«¤éÁªÂò¤µ¤ì¤ë¡£
42 catanh(z) = 0.5 * (clog(1 + z) \- clog(1 \- z))
45 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
50 /* Link with "\-lm" */
58 main(int argc, char *argv[])
60 double complex z, c, f;
63 fprintf(stderr, "Usage: %s <real> <imag>\\n", argv[0]);
67 z = atof(argv[1]) + atof(argv[2]) * I;
70 printf("catanh() = %6.3f %6.3f*i\\n", creal(c), cimag(c));
72 f = 0.5 * (clog(1 + z) \- clog(1 \- z));
73 printf("formula = %6.3f %6.3f*i\\n", creal(f2), cimag(f2));