sinh,sinhl
math.h:インデックス への移動
ヘッダーファイル
math.h
カテゴリ
演算ルーチン,インラインルーチン
プロトタイプ
double sinh(double x);
long double sinhl(long double x);
説明
ハイパーボリックサインを計算します。
sinh は,ハイパーボリックサインを計算します。
sinl は long double バージョンです。long double 引数を受け取り,long double の結果を返します。sinh および sinhl のエラー処理は,_matherr および _matherrl 関数を使って変更できます。
戻り値
sinh および sinhl は,x のハイパーボリックサインを返します。
正しい値がオーバーフローになった場合,これらの関数は,適切な符号を付けて HUGE_VAL(sinh)または _LHUGE_VAL(sinhl)を返します。また,グローバル変数 errno が ERANGE に設定されます。
例
#include <stdio.h>
#include <math.h>
int main(void)
{
double result, x = 0.5;
result = sinh(x);
printf("The hyperbolic sin of %lf is %lf\n", x, result);
return 0;
}
移植性
POSIX | Win32 | ANSI C | ANSI C++ | |
---|---|---|---|---|
sinh |
+ |
+ |
+ |
+ |
sinhl |
+ |
+ |
+ |