sinh函数_sinh()函数以及C ++中的示例

news/2024/7/19 14:33:33 标签: c++, python, java, javascript, js

sinh函数

C ++ sinh()函数 (C++ sinh() function)

sinh() function is a library function of cmath header, it is used to find the hyperbolic sine of the given value (hyperbolic angle), it accepts a number (x) and returns the hyperbolic sine of x.

双曲正弦()函数CMATH报头的库函数,它被用于查找给定值(双曲角)的双曲正弦,它接受一个数字(x)和返回x的双曲正弦值。

Syntax of sinh() function:

sinh()函数的语法:

    sinh(x);

Parameter(s): x – is the number (hyperbolic angel) to be used to calculate the hyperbolic sine.

参数: x –是用于计算双曲正弦值的数字(双曲天使)。

Return value: double – it returns double type value that is the hyperbolic sine of hyperbolic angle x.

返回值: double-返回double类型的值,它是双曲角度x的双曲正弦值。

Example:

例:

    Input:
    float x = 2.45;
    
    Function call:
    sinh(x);    
    
    Output:
    5.75103

C ++代码演示sinh()函数的示例 (C++ code to demonstrate the example of sinh() function)

// C++ code to demonstrate the example of 
// sinh() function

#include <iostream>
#include <cmath>
using namespace std;

// main() section
int main()
{
    float x;
    
    x = -10.23;
    cout<<"sinh("<<x<<"): "<<sinh(x)<<endl;

    x = 0;
    cout<<"sinh("<<x<<"): "<<sinh(x)<<endl;    

    x = 2.45;
    cout<<"sinh("<<x<<"): "<<sinh(x)<<endl;    
    
    return 0;
}

Output

输出量

sinh(-10.23): -13861.2
sinh(0): 0
sinh(2.45): 5.75103

Reference: C++ sinh() function

参考: C ++ sinh()函数

翻译自: https://www.includehelp.com/cpp-tutorial/sinh-function-with-example.aspx

sinh函数


http://www.niftyadmin.cn/n/1256495.html

相关文章

python 示例_Python中带有示例的finally关键字

python 示例Python最终关键字 (Python finally keyword) finally is a keyword (case-sensitive) in python, it is a part of "try...except...finally" block, it is used to define a block (of coding statements) to execute finally i.e. no matter there is a…

c++中tan函数_tan()函数以及C ++中的示例

c中tan函数C tan()函数 (C tan() function) tan() function is a library function of cmath header, it is used to find the tangent of the given number (angle), it accepts a number (x) and returns the tangent of angle x radians. tan()函数是cmath标头的库函数&…

vc++ cos 函数_cos()函数以及C ++中的示例

vc cos 函数C cos()函数 (C cos() function) cos() function is a library function of cmath header, it is used to find the cosine of the given number (angle), it accepts a number (x) and returns the cosine of angle x radians. cos()函数是cmath标头的库函数&…

python中int函数_int()函数以及Python中的示例

python中int函数Python int()函数 (Python int() function) int() function is used to convert a string (that should contain a number/integer), number (integer, float) into an integer value. int()函数用于将字符串(应包含数字/整数)&#xff0c;数字(整数&#xff0c…

PhpStorm的破解 汉化

以前一直习惯使用sublime&#xff0c;最近发现phpstorm比submit稍微更强大些&#xff0c;其很多插件都是直接可以使用&#xff0c;不需要另外去拓展了 其中的破解、汉化步骤就需要借助一些资源 &#xff08;1&#xff09;破解 安装完毕后&#xff0c;直接打开即进入注册步骤 直…

python try 和_try关键字和Python范例

python try 和Python try关键字 (Python try keyword) try is a keyword (case-sensitive) in python, it is a part of "try...except" block, it is used to define a block (of coding statements) to test/check whether this block contains an exception or no…

Font Awesome入门教程

Font Awesome 图标 Font Awesome 是一套绝佳的图标字体库和CSS框架。 Font Awesome 字体为您提供可缩放矢量图标,它可以被定制大小、颜色、阴影以及任何可以用CSS的样式。 要使用Font Awesome图标&#xff0c;请在HTML页面的 部分中添加以下行&#xff1a; 国内推荐 CDN&am…

和关键字以及Python中的示例

Python和关键字 (Python and keyword) and is a keyword (case-sensitive) in python, it is a logical operator actually, it is used to validate more than one conditions. It is similar to Logical AND (&&) operator in C, C programming. It requires a minim…