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