機能 |
双曲線正弦(ハイパボリックサイン)を計算することを表す。 |
||
---|---|---|---|
定義 |
#include <math.h> double tanh ( double x ); float tanh ( float x ); long double tanh ( long double x ); ※C99規格では以下の定義となる double tanh ( double x ); float tanhf ( float x ); long double tanhl ( long double x ); |
||
引数 |
|
||
戻り値 | 計算結果を返す。 | ||
実装例 |
#include <math.h> #include <stdio.h> int main(void) { double a = 0.0; printf("tanh(%f) = %f\n", a, tanh(a) ); /* tanh(0.0) */ return 0; } |
||
実行結果 |
tanh(0.000000) = 0.000000 |
tanh()