Skip to main content

SINH

Description

Returns the hyperbolic sine of x.

Syntax

SINH(<x>)

Parameters

ParameterDescription
<x>The value for which the hyperbolic sine value is to be calculated

Return Value

The sinh value of parameter x.

Special Cases

  • When x is NaN, returns NaN
  • When x is positive infinity, returns Infinity
  • When x is negative infinity, returns -Infinity
  • When x is 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 |
+-------------------------------+