跳到主要内容

ASINH

描述

返回x的反双曲正弦值。

语法

ASINH(<x>)

参数

参数描述
<x>需要计算反双曲正弦值的数值

返回值

参数x的反双曲正弦值。

特殊情况

  • xNaN,返回 NaN
  • x 为正无穷,返回 Infinity
  • x 为负无穷,返回 -Infinity
  • xNULL,返回 NULL

示例

select asinh(0.0);
+------------+
| asinh(0.0) |
+------------+
| 0 |
+------------+
select asinh(1.0);
+-------------------+
| asinh(1.0) |
+-------------------+
| 0.881373587019543 |
+-------------------+
select asinh(-1.0);
+--------------------+
| asinh(-1.0) |
+--------------------+
| -0.881373587019543 |
+--------------------+
select asinh(cast('nan' as double));
+------------------------------+
| asinh(cast('nan' AS DOUBLE)) |
+------------------------------+
| NaN |
+------------------------------+
select asinh(cast('inf' as double));
+------------------------------+
| asinh(cast('inf' AS DOUBLE)) |
+------------------------------+
| Infinity |
+------------------------------+
select asinh(cast('-inf' as double));
+-------------------------------+
| asinh(cast('-inf' AS DOUBLE)) |
+-------------------------------+
| -Infinity |
+-------------------------------+