SINH
描述
返回x
的双曲正弦值。
语法
SINH(<x>)
参数
参数 | 描述 |
---|---|
<x> | 需要计算双曲正弦值的数值 |
返回值
参数x
的双曲正弦值。
特殊情况
- 当
x
为NaN
,返回NaN
- 当
x
为正无穷,返回Infinity
- 当
x
为负无穷,返回-Infinity
- 当
x
为NULL
,返回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 |
+-------------------------------+