SINH
Description
Returns the hyperbolic sine of x.
Syntax
SINH(<x>)
Parameters
| Parameter | Description |
|---|---|
<x> | The value for which the hyperbolic sine value is to be calculated |
Return Value
The sinh value of parameter x.
Special Cases
- When
xis NaN, returns NaN - When
xis positive infinity, returns Infinity - When
xis negative infinity, returns -Infinity - When
xis NULL, returns NULL
Example
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 |
+-------------------------------+