C sinh 函数是一个数学函数,用于计算给定值或指定表达式的三角双曲正弦。sinh 函数的语法如下。
double sinh(double number);
sinh 函数示例
math sinh 函数允许您找到给定值的双曲正弦。在此程序中,我们将找到不同值的双曲正弦并显示输出。
#include <stdio.h>
#include <math.h>
int main()
{
printf("\n The Hyperbolic Sine Value of 0 = %.4f ", sinh(0));
printf("\n The Hyperbolic Sine Value of 1 = %.4f ", sinh(1));
printf("\n The Hyperbolic Sine Value of 6.25 = %.4f ", sinh(6.25));
printf("\n The Hyperbolic Sine Value of 2.59 = %.4f ", sinh(2.59));
printf("\n The Hyperbolic Sine Value of -7.23 = %.4f ", sinh(-7.23));
printf("\n The Hyperbolic Sine Value of -4.32 = %.4f ", sinh(-4.32));
return 0;
}

sinh 示例 2
在此 C 编程 示例中,我们允许用户输入他们的值。接下来,此 程序 使用 math sinh 函数来查找用户给定数字的双曲正弦。
#include <stdio.h>
#include <math.h>
int main()
{
float number, sinhValue;
printf(" Please Enter any Numeric Value : ");
scanf("%f", &number);
sinhValue = sinh(number);
printf("\n The Result of %.2f = %.4f ", number, sinhValue);
return 0;
}
Please Enter any Numeric Value : 12.56
The Result of 12.56 = 142465.2344