SQLite tanh() Function
The SQLite tanh() function returns the hyperbolic tangent of the specified number.
Syntax
Here is the syntax of the SQLite tanh() function:
tanh(number)
Parameters
number-
Required. A number used to calculate the hyperbolic tangent.
Return value
The SQLite tanh() function returns the hyperbolic tangent of the specified number.
If the parameter number is NULL, the tanh() function will return NULL.
Examples
This example shows the basic usage of the SQLite tanh() function:
SELECT
tanh(-2.5),
tanh(-1),
tanh(0),
tanh(1),
tanh(2.5);
tanh(-2.5) = -0.98661429815143
tanh(-1) = -0.761594155955765
tanh(0) = 0.0
tanh(1) = 0.761594155955765
tanh(2.5) = 0.98661429815143