函式
<cmath> <ctgmath>

asinh

     double asinh  (double x);      float asinhf (float x);long double asinhl (long double x);
     double asinh (double x);      float asinh (float x);long double asinh (long double x);     double asinh (T x);           // additional overloads for integral types
計算雙曲反正弦
返回 x 的雙曲反正弦。

雙曲反正弦雙曲正弦的逆運算。

標頭檔案 <tgmath.h> 提供了此函式的型別通用宏版本。
此標頭檔案(<cmath>)中為 整型提供了額外的過載:這些過載在計算前有效地將 x 轉換為 double(為 T 是任何整型而定義)。

此函式也在 <complex> 中被過載(參見 complex asinh)。

引數

x
計算雙曲反正弦的值。

返回值

x 的雙曲反正弦。

示例

1
2
3
4
5
6
7
8
9
10
11
12
/* asinh example */
#include <stdio.h>      /* printf */
#include <math.h>       /* asinh, exp, cosh */

int main ()
{
  double param, result;
  param = exp(2) - cosh(2);
  result = asinh(param) ;
  printf ("The area hyperbolic sine of %f is %f.\n", param, result);
  return 0;
}

輸出

The area hyperbolic sine of 3.626860 is 2.000000.


另見