TANH

Section: Linux Programmer's Manual (3)
Updated: 2008-08-05
Index JM Home Page roff page
 

名前

tanh, tanhf, tanhl - 双曲線正接 (hyperbolic tangent) 関数  

書式

#include <math.h>

double tanh(double x);

float tanhf(float x);
long double tanhl(long double x);

-lm でリンクする。

glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):

tanhf(), tanhl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or cc -std=c99  

説明

tanh() 関数は x の双曲線正接 (hyperbolic tangent) 関数を返す。 数学的には以下のように定義されている.

    tanh(x) = sinh(x) / cosh(x)
 

返り値

成功すると、これらの関数は x の双曲線正接を返す。

x が NaN の場合、NaN が返される。

x が +0 (-0) の場合、+0 (-0) が返される。

x が正の無限大 (負の無限大) の場合、+1 (-1) が返される。  

エラー

エラーは発生しない。  

準拠

C99, POSIX.1-2001. double 版の関数は SVr4, 4.3BSD, C89 にも準拠している。  

関連項目

acosh(3), asinh(3), atanh(3), cosh(3), ctanh(3), sinh(3)


 

Index

名前
書式
説明
返り値
エラー
準拠
関連項目

This document was created by man2html, using the manual pages.
Time: 03:26:58 GMT, April 25, 2010