cosh ()- 计算双曲 Cosin
格式
#include <math.h>
double cosh(double x);语言级别
ANSI
线程安全
是
描述
cosh() 函数计算 x的双曲余弦。 值 x 以弧度表示。
返回值
cosh() 函数返回 x的双曲余弦。 如果结果过大, cosh() 将返回值 HUGE_VAL ,并将 errno 设置为 ERANGE。
示例
此示例将 y 计算为 x的双曲余弦值。
#include <math.h>
#include <stdio.h>
int main(void)
{
double x,y;
x = 7.2;
y = cosh(x);
printf("cosh( %lf ) = %lf\n", x, y);
}
/********************* Output should be similar to: *******************
cosh( 7.200000 ) = 669.715755
*/