跳到主要内容

SINH

描述

返回x的双曲正弦值。

语法

SINH(<x>)

参数

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

返回值

参数x的双曲正弦值。

特殊情况

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

示例

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