.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa .\" all rights reserved. .\" Translated Sat, 13 Jul 1996 17:58:16 JST .\" by Kenji Kajiwara and Kentaro Ogawa .\" Proof Reading: Takashi Yoshino .\" Updated Tue Aug 5 23:16:48 JST 2003 .\" by Akihiro MOTOKI .\" Updated 2008-09-14, Akihiro MOTOKI .\" .TH ATANH 3 2010-09-11 "" "Linux Programmer's Manual" .\"O .SH NAME .SH 名前 .\"O atanh, atanhf, atanhl \- inverse hyperbolic tangent function atanh, atanhf, atanhl \- 逆双曲線正接(inverse hyperbolic tangent)関数 .\"O .SH SYNOPSIS .SH 書式 .nf .B #include .sp .BI "double atanh(double " x ); .br .BI "float atanhf(float " x ); .br .BI "long double atanhl(long double " x ); .sp .fi .\"O Link with \fI\-lm\fP. \fI\-lm\fP でリンクする。 .sp .in -4n .\"O Feature Test Macro Requirements for glibc (see .\"O .BR feature_test_macros (7)): glibc 向けの機能検査マクロの要件 .RB ( feature_test_macros (7) 参照): .in .sp .ad l .BR atanh (): .RS 4 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L; .br or .I cc\ -std=c99 .RE .br .BR atanhf (), .BR atanhl (): .RS 4 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L; .br or .I cc\ -std=c99 .RE .ad b .\"O .SH DESCRIPTION .SH 説明 .\"O The .\"O .BR atanh () .\"O function calculates the inverse hyperbolic tangent of .\"O \fIx\fP; that is the value whose hyperbolic tangent is \fIx\fP. .BR atanh () 関数は \fIx\fP の逆双曲線正接 (inverse hyperbolic tangent) を計算する。 すなわち、その双曲線正接 (hyperbolic tangent) が \fIx\fP になる ような値である。 .\"O .SH "RETURN VALUE" .SH 返り値 .\"O On success, these functions return the inverse hyperbolic tangent of .\"O .IR x . 成功すると、これらの関数は .I x の逆双曲線正接を返す。 .\"O If .\"O .I x .\"O is a NaN, a NaN is returned. .I x が NaN の場合、NaN が返される。 .\"O If .\"O .I x .\"O is +0 (\-0), +0 (\-0) is returned. .I x が +0 (\-0) の場合、+0 (\-0) が返される。 .\"O If .\"O .I x .\"O is +1 or \-1, .\"O a pole error occurs, .\"O and the functions return .\"O .BR HUGE_VAL , .\"O .BR HUGE_VALF , .\"O or .\"O .BR HUGE_VALL , .\"O respectively, with the mathematically correct sign. .I x が +1 か \-1 の場合、 極エラー (pole error) が発生し、 関数の種類に応じて、数学的に正しい符号の .BR HUGE_VAL , .BR HUGE_VALF , .BR HUGE_VALL がそれぞれ返される。 .\"O If the absolute value of .\"O .I x .\"O is greater than 1, .\"O a domain error occurs, .\"O and a NaN is returned. .I x の絶対値が 1 より大きい場合、 領域エラー (domain error) が発生し、 NaN が返される。 .\" .\" POSIX.1-2001 documents an optional range error for subnormal x; .\" glibc 2.8 does not do this. .\"O .SH ERRORS .SH エラー .\"O See .\"O .BR math_error (7) .\"O for information on how to determine whether an error has occurred .\"O when calling these functions. これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は .BR math_error (7) を参照のこと。 .PP .\"O The following errors can occur: 以下のエラーが発生する可能性がある。 .TP .\"O Domain error: \fIx\fP less than \-1 or greater than +1 領域エラー (domain error): \fIx\fP が \-1 より小さいか +1 より大きい .\"O .I errno .\"O is set to .\"O .BR EDOM . .\"O An invalid floating-point exception .\"O .RB ( FE_INVALID ) .\"O is raised. .I errno に .B EDOM が設定される。 無効 (invalid) 浮動小数点例外 .RB ( FE_INVALID ) が上がる。 .TP .\"O Pole error: \fIx\fP is +1 or \-1 極エラー (pole error): \fIx\fP が +1 か \-1 .\"O .I errno .\"O is set to .\"O .BR ERANGE .\"O (but see BUGS). .I errno に .B ERANGE が設定される (但し「バグ」の節も参照)。 .\"O A divide-by-zero floating-point exception .\"O .RB ( FE_DIVBYZERO ) .\"O is raised. 0 による除算 (divide-by-zero) 浮動小数点例外 .RB ( FE_DIVBYZERO ) が上がる。 .\"O .SH "CONFORMING TO" .SH 準拠 C99, POSIX.1-2001. .\"O The variant returning .\"O .I double .\"O also conforms to .\"O SVr4, 4.3BSD, C89. .I double 版の関数は SVr4, 4.3BSD, C89 にも準拠している。 .\"O .SH BUGS .SH バグ .\"O In glibc 2.9 and earlier, .\" Bug: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6759 .\" This can be seen in sysdeps/ieee754/k_standard.c .\"O when a pole error occurs, .\"O .I errno .\"O as set to .\"O .BR EDOM .\"O instead of the POSIX-mandated .\"O .BR ERANGE . .\"O Since version 2.10, glibc does the right thing. glibc 2.9 とそれ以前のバージョンでは、 極エラーが発生した場合、POSIX で要求されている .B ERANGE ではなく .B EDOM が .I errno に設定される。 バージョン 2.10 以降の glibc では、正しい動作をする。 .\"O .SH "SEE ALSO" .SH 関連項目 .BR acosh (3), .BR asinh (3), .BR catanh (3), .BR cosh (3), .BR sinh (3), .BR tanh (3)