SQLite cosh() Function

The SQLite cosh() function returns the hyperbolic cosine of the specified number.

Syntax

Here is the syntax of the SQLite cosh() function:

cosh(number)

Parameters

number

Required. A number used to calculate the hyperbolic cosine.

Return value

The SQLite cosh() function returns the hyperbolic cosine of the specified number.

If the parameter number is NULL, the cosh() function will return NULL.

Examples

This example shows the basic usage of the SQLite cosh() function:

SELECT
    cosh(-1000),
    cosh(-2.5),
    cosh(-0.2),
    cosh(0),
    cosh(0.2),
    cosh(2.5),
    cosh(1000);
cosh(-1000) = Inf
 cosh(-2.5) = 6.13228947966369
 cosh(-0.2) = 1.02006675561908
    cosh(0) = 1.0
  cosh(0.2) = 1.02006675561908
  cosh(2.5) = 6.13228947966369
 cosh(1000) = Inf