SQLite Tutorial SQLite Advanced SQLite Database SQLite References

SQLite SINH() Function



The SQLite SINH() function returns hyperbolic sine of a value. The hyperbolic sine of x is defined as:

sinh

where e is an Euler's number.

Syntax

SINH(x)

Parameters

x Required. Specify the value.

Return Value

Returns the hyperbolic sine of a value.

Example 1:

The example below shows the usage of SINH() function.

SELECT SINH(0);
Result: 0.0

SELECT SINH(1);
Result: 1.1752011936438

SELECT SINH(-1);
Result: -1.1752011936438

SELECT SINH(2);
Result: 3.62686040784702

SELECT SINH(-2);
Result: -3.62686040784702

Example 2:

Consider a database table called Sample with the following records:

Datax
Data 10
Data 20.5
Data 31
Data 41.5
Data 52

The statement given below can be used to calculate the hyperbolic sine of values of column x.

SELECT *, SINH(x) AS SINH_Value FROM Sample;

This will produce the result as shown below:

DataxSINH_Value
Data 100.0
Data 20.50.521095305493747
Data 311.1752011936438
Data 41.52.12927945509482
Data 523.62686040784702

❮ SQLite Functions