首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::asinh

Defined in header <cmath>

?

?

float asinh( float arg );

(1)

(since C++11)

double asinh( double arg );

(2)

(since C++11)

long double asinh( long double arg );

(3)

(since C++11)

double asinh( Integral arg );

(4)

(since C++11)

反双曲正弦的计算arg...

4%29一组过载或接受任意参数的函数模板积分型等于2%29%28double29%。

参数

arg

-

value of a floating-point or Integral type

返回值

如果没有误差,则反双曲正弦arg%28新华-1

返回%28 arg%29或arsinh%28 arg%29%29。

如果由于下流而发生范围错误,则返回舍入%29后的正确结果%28。

错误处理

错误按数学[医]错误处理...

如果实现支持ieee浮点算法%28IEC 60559%29,

  • 如果参数为±0或±∞,则不加修改地返回参数。
  • 如果参数为nan,则返回nan。

注记

虽然C++所指的C标准%28将此函数命名为“弧双曲正弦”,但双曲函数的反函数是面积函数。他们的论点是双曲区,而不是弧线区。正确的名称是POSIX%29使用的“反双曲正弦”%28或“面积双曲正弦”。

实例

二次

代码语言:javascript
复制
#include <iostream>
#include <cmath>
 
int main()
{
    std::cout << "asinh(1) = " << std::asinh(1) << '\n'
              << "asinh(-1) = " << std::asinh(-1) << '\n';
    // special values
    std::cout << "asinh(+0) = " << std::asinh(+0.0) << '\n'
              << "asinh(-0) = " <<  std::asinh(-0.0) << '\n';
}

二次

产出:

二次

代码语言:javascript
复制
asinh(1) = 0.881374
asinh(-1) = -0.881374
asinh(+0) = 0
asinh(-0) = -0

二次

另见

acosh (C++11)

computes the inverse hyperbolic cosine (arcosh(x)) (function)

atanh (C++11)

computes the inverse hyperbolic tangent (artanh(x)) (function)

sinh

computes hyperbolic sine (sh(x)) (function)

asinh(std::complex) (C++11)

computes area hyperbolic sine of a complex number (function template)

c为asinh编写的文件

外部链接

逆双曲正弦波。来自MathWorld的一个Wolfram Web资源。

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com