COSH
Returns the hyperbolic cosine of the argument; the argument is expected in radians.
Syntax
sql
COSH(expr)Argument
expr: An argument as a real number or another data type that can be converted into a numeric data type representing the radians.
Example
sql
SELECT 0 as Angle, 0 as expr, cosh(0) as "cosh(expr)"
UNION ALL
SELECT 180 as Angle, 3.14 as expr, cosh(3.14) as "cosh(expr)"
UNION ALL
SELECT 180 as Angle, 3.14 as expr, cosh('3.14') as "cosh(expr)"
UNION ALL
SELECT 90 as Angle, 1.57 as expr, cosh(1.57) as "cosh(expr)"
UNION ALL
SELECT 270 as Angle, 4.71 as expr, cosh(4.71) as "cosh(expr)"
;txt
+-------+-------+------------+
| ANGLE | EXPR | cosh(expr) |
|-------+-------+------------|
| 0 | 0 | 1 |
| 180 | 3.14 | ~11.57 |
| 180 | 3.14 | ~11.57 |
| 90 | 1.57 | ~2.5 |
| 270 | 4.71 | ~55.53 |
+-------+-------+------------+