曲径通幽论坛

标题: sinh() -- 双曲线正弦函数 [打印本页]

作者: beyes    时间: 2011-12-24 10:23
标题: sinh() -- 双曲线正弦函数
sinh() 原型如下:
[Plain Text] 纯文本查看 复制代码
#include <math.h>
double sinh(double x);


sinh() 函数用来计算参数 x 的双曲线正弦值,并将结果返回。其数学公式为:
[attach]138[/attach]

测试代码
[C++] 纯文本查看 复制代码
#include <stdio.h>
#include <math.h>

int main()
{
        double result = sinh(0.5);

        printf ("sinh(0.5) = %f\n", result);

        return 0;
}

运行输出:
./sinh
sinh(0.5) = 0.521095

[attach]139[/attach]




欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2