#include <math.h>
double sinh( double arg );
函数返回参数 arg 的双曲正弦值。
#include <stdio.h>
#include <math.h>
int main(void)
{
double result, x = 0.5;
result = sinh(x);
printf("The hyperbolic sin() of %lf is %lf\n", x, result);
return 0;
}输出结果:
The hyperbolic sin() of 0.500000 is 0.521095