asinh()函数以及C ++中的示例
C++asinh()函数
asinh()函数是cmath标头的库函数,用于查找给定值的面积双曲正弦,它接受数字(x)并返回x的面积双曲正弦。
asinh()函数语法:
asinh(x);
参数:x–是要计算其面积双曲正弦的数字/值。
返回值:double-返回double类型值,它是给定数字/值x的面积双曲正弦值。
示例
Input:
float x = 2.45;
Function call:
asinh(x);
Output:
1.6285C++代码演示asinh()函数示例
//示例
//asinh()功能
#include <iostream>
#include <cmath>
using namespace std;
//main()部分
int main(){
float x;
x = 1.0;
cout<<"asinh("<<x<<"): "<<asinh(x)<<endl;
x = 10.23;
cout<<"asinh("<<x<<"): "<<asinh(x)<<endl;
x = 2.45;
cout<<"asinh("<<x<<"): "<<asinh(x)<<endl;
return 0;
}输出结果
asinh(1): 0.881374 asinh(10.23): 3.02085 asinh(2.45): 1.6285
参考:C++asinh()函数
热门推荐
10 朋友新年祝福语大全 简短
11 新年祝福语简短大方兔年
12 搬新家礼物祝福语简短
13 同学见面花束祝福语简短
14 五一假期祝福语幽默简短
15 离职欢送敬酒祝福语简短
16 对学弟的祝福语简短
17 考老师辞职祝福语简短
18 祝福语驱散霉运的话简短