该函数计算以弧度给出的角度的双曲正弦值。
数学上
假设双曲角为x:
float sinh(float x); double sinh(double x); long double sinh(long double x); double sinh(integral x);
x :代表双曲线角的值。
它返回一个角度的双曲正弦。
让我们看一个简单的例子。
#include <iostream> #include<math.h> using namespace std; int main() { int x=90; float radian=x*3.14/180; std::cout << "Value of degree is: " << x<<std::endl; cout<<"sinh(radian): "<<sinh(radian); return 0; }
输出:
Value of degree is: 90 sinh(radian): 2.2993
在此示例中,sinh()函数计算角度为90的双曲正弦并返回值2.2993
让我们看另一个简单的例子。
链接:https://www.learnfk.comhttps://www.learnfk.com/c++/cpp-math-sinh-function.html
来源:LearnFk无涯教程网
#include <iostream> #include<math.h> using namespace std; int main() { float x=56.4; float radian=x*3.14/180; std::cout << "Value of degree is :" << x<<std::endl; cout<<"sinh(radian): "<<sinh(radian); return 0; }
输出:
Value of degree is :56.4 sinh(radian): 1.15046
在此示例中,sinh()函数计算角度为56.4的双曲正弦值并返回值1.15。
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
PPT设计进阶 · 从基础操作到高级创意 -〔李金宝(Bobbie)〕