フォーマット
#include <math.h> double sinh(double x);
言語レベル: ANSI
スレッド・セーフ: はい。
説明
sinh() 関数は、ラジアンで表された x で、x の双曲線正弦を計算します。
戻り値
sinh() 関数は、x の双曲線正弦の値を戻します。 結果が大きすぎると、sinh() 関数は errno を ERANGE に設定して、 値 HUGE_VAL (x の値によって正または負) を戻します。
sinh() の使用例
この例では、y を π/2 の双曲線正弦として計算します。
#include <math.h> #include <stdio.h> int main(void) { double pi, x, y; pi = 3.1415926535; x = pi/2; y = sinh(x); printf("sinh( %lf ) = %lf¥n", x, y); } /********************* Output should be similar to: ************* sinh( 1.570796 ) = 2.301299 */
関連情報