cosh()函数以及C ++中的示例
C ++ cosh()函数 (C++ cosh() function)
cosh() function is a library function of cmath header, it is used to find the hyperbolic cosine of the given value (hyperbolic angle), it accepts a number (x) and returns the hyperbolic cosine of x.
COSH()函数是CMATH报头的库函数,它被用于查找给定值(双曲角)的双曲余弦,它接受一个数字(x)和返回x的双曲余弦。
Syntax of cosh() function:
cosh()函数的语法:
cosh(x);
Parameter(s): x – is the number (hyperbolic angel) to be used to calculate the hyperbolic cosine.
参数: x –是用于计算双曲余弦的数字(双曲天使)。
Return value: double – it returns double type value that is the hyperbolic cosine of hyperbolic angle x.
返回值: double-返回双精度类型值,即双曲角度x的双曲余弦值。
Example:
例:
Input:
float x = 2.45;
Function call:
cosh(x);
Output:
5.83732
C ++代码演示cosh()函数的示例 (C++ code to demonstrate the example of cosh() function)
// C++ code to demonstrate the example of
// cosh() function
#include <iostream>
#include <cmath>
using namespace std;
// main() section
int main()
{float x;
x = -10.23;
cout<<"cosh("<<x<<"): "<<cosh(x)<<endl;
x = 0;
cout<<"cosh("<<x<<"): "<<cosh(x)<<endl;
x = 2.45;
cout<<"cosh("<<x<<"): "<<cosh(x)<<endl;
return 0;
}
Output
输出量
cosh(-10.23): 13861.2
cosh(0): 1
cosh(2.45): 5.83732
Reference: C++ cosh() function
参考: C ++ cosh()函数
翻译自: https://www.includehelp.com/cpp-tutorial/cosh-function-with-example.aspx
cosh()函数以及C ++中的示例相关推荐
- np.cosh没有分配_JavaScript中带有示例的Math.cosh()方法
np.cosh没有分配 JavaScript | Math.cosh()方法 (JavaScript | Math.cosh() Method) Math operations in JavaScri ...
- python 功能键ord_ord()函数以及Python中的示例
Python ord() 功能 ord()函数是Python中的一个库函数,它用于从给定的字符值中获取数字值,它接受一个字符并返回一个整数,即用于将字符转换为整数,即用于获取a的ASCII值.给定的字 ...
- python中pow函数_pow()函数以及Python中的示例
python中pow函数 Python pow()函数 (Python pow() function) pow() function is a library function in Python, ...
- to_number用法示例_Number()函数以及JavaScript中的示例
to_number用法示例 Number()函数 (Number() function) Number() function is a predefined global function in Ja ...
- eval 函数 代替函数_eval()函数以及JavaScript中的示例
eval 函数 代替函数 eval()函数 (eval() function) eval() function is a predefined global function in JavaScrip ...
- python中len函数_len()函数以及Python中的示例
python中len函数 Python len()函数 (Python len() function) len() function is a library function in Python, ...
- java中isnan函数_isNaN()函数以及JavaScript中的示例
java中isnan函数 Prerequisite: NaN property in JavaScript 先决条件: JavaScript中的NaN属性 isNaN()函数 (isNaN() fun ...
- c语言 函数的参数传递示例_isgreater()函数以及C ++中的示例
c语言 函数的参数传递示例 C ++ isgreater()函数 (C++ isgreater() function) isgreater() function is a library functi ...
- fmax()函数以及C ++中的示例
C ++ fmax()函数 (C++ fmax() function) fmax() function is a library function of cmath header, it is use ...
最新文章
- 蜻蜓大脑算法速度超快,AI科学家:拿来吧你
- 网络工程师必懂的专业术语
- 杂记整理二:linux与程序安装
- Enhanced ABAP Development with Core Data Services (CDS)
- Java设计模式之七大结构型模式
- mysql链式复制_MySQL主从服务器链式复制配置(ubuntu)
- mysql 会话级别的参数_PostgreSQL的参数设置级别及查询各级别的参数值
- 这些迹象表明公司即将裁员
- 如何用Pygame写游戏(十七)
- 产能不足?英特尔DG2 GPU将采用台积电7nm工艺
- 急性中耳炎的治疗行业调研报告 - 市场现状分析与发展前景预测
- c语言中局部变量存放在哪里,C语言全局变量存放在哪里?
- CSS-增加字体和颜色样式
- 移动NB的APN知识汇总(及时补充)
- 共享经济已成资本傀儡,背后是腾讯和阿里的暗斗
- Mybatis多条件筛选
- powerquery分组,PowerQuery:如何连接分组值?
- 面向对象类与对象的关系
- STM32 的核心Cortex-M3 处理器
- Debian 安装 ldac