Cloud

cosh

The cosh() function returns the hyperbolic cosine of a specified numeric argument.

Syntax

COSH(x)

Arguments

  • x: A positive or negative number of type real or double precision.

Return type

Same as the input type (real or double precision).

Examples

Positive value

SELECT COSH(1);
       cosh
--------------------
 1.5430806348152437
(1 row)

Zero

SELECT COSH(0);
 cosh
------
    1
(1 row)

Negative value

cosh is symmetric, so COSH(-x) returns the same result as COSH(x):

SELECT COSH(-1);
       cosh
--------------------
 1.5430806348152437
(1 row)