C-standard-library-c-function-sinh

提供:Dev Guides
移動先:案内検索

Cライブラリ関数-sinh()

説明

Cライブラリ関数* double sinh(double x)は、 *x の双曲線正弦を返します。

宣言

以下は、sinh()関数の宣言です。

double sinh(double x)

パラメーター

  • x -これは浮動小数点値です。

戻り値

この関数は、xの双曲線正弦を返します。

次の例は、sinh()関数の使用法を示しています。

#include <stdio.h>
#include <math.h>

int main () {
   double x, ret;
   x = 0.5;

   ret = sinh(x);
   printf("The hyperbolic sine of %lf is %lf degrees", x, ret);

   return(0);
}

上記のプログラムをコンパイルして実行すると、次の結果が生成されます-

The hyperbolic sine of 0.500000 is 0.521095 degrees