VeloDB Cloud
SQL Reference
SQL Functions
Scalar Functions
Numeric Functions
COSH

COSH

Description

Returns the hyperbolic cosine of x.

Syntax

COSH(<x>)

Parameters

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

Return Value

The hyperbolic cosine of parameter x

Examples

select cosh(0);
+-------------------------+
| cosh(cast(0 as DOUBLE)) |
+-------------------------+
|                     1.0 |
+-------------------------+
select cosh(1);
+-------------------------+
| cosh(cast(1 as DOUBLE)) |
+-------------------------+
|       1.543080634815244 |
+-------------------------+
select cosh(-1);
+--------------------------+
| cosh(cast(-1 as DOUBLE)) |
+--------------------------+
|        1.543080634815244 |
+--------------------------+