sinh() – C函数

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 hyperboloc sine of 0.500000 is 0.521095 degrees

以上是sinh() – C函数的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>