C语言 <math.h> 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 复制 返回math.h头文件