Skip to main content

COSH

Calculates the hyperbolic cosine of a specified value, which is the average of (e^x) and (e^{-x}) where (x) is the given number.

See also:
[SELECT]


Syntax

SELECT COSH(value) FROM <multipartIdentifier>;

Arguments

value
A numeric expression for which the hyperbolic cosine is to be calculated.

Return Value(s)

Returns the hyperbolic cosine of the specified value.


Examples

Calculate the hyperbolic cosine of 1

SELECT COSH(1) AS hyperbolic_cosine_value;

This query returns approximately 1.5431, as the hyperbolic cosine of 1 is about 1.5431.

Calculate the hyperbolic cosine of 0

SELECT COSH(0) AS hyperbolic_cosine_value;

This query calculates the hyperbolic cosine of 0, resulting in 1, since the hyperbolic cosine of 0 is exactly 1.