C ++ STL asinh()函数
ASINH()函数是C++标准库的功能。asinh(value)是反双曲正弦值,它返回sinh(x)的值,其中x以弧度表示。
功能-
asinh() ;
函数的参数,弧度中的反双曲角。它可以是负数,正数或零。参数值可以是double,float或longdouble。
返回值 -返回输入值的反双曲正弦值。返回值以弧度为单位。
让我们看一个显示功能的示例-
示例
#include <bits/stdc++.h> using namespace std; int main() { double insinh = 75.0; double value = asinh(insinh); cout <<"asinh(75.0) = "<<value<<" radians\n"; return 0; }
输出结果
asinh(75.0) = 5.01068 radians
您还可以将输出转换为弧度,方法是将值乘以(180/3.141592)以将其转换为弧度。
示例
#include <bits/stdc++.h> using namespace std; int main() { double insinh = 75.0; double value = asinh(insinh); cout <<"asinh(75.0) = "<<value<<" radians\n"; cout<<"The value converted in degrees is "<< (value* (180 / 3.141592)); return 0; }
输出结果
asinh(75.0) = 5.01068 radians The value converted in degrees is 287.091