TANH
Example
Section titled “Example”SELECT TANH(1) AS TanhValue;Output
Section titled “Output”+------------------+| TanhValue |+------------------+| 0.761594155955765|+------------------+Explanation
Section titled “Explanation”The TANH function computes the hyperbolic tangent of a number. In the example above, the TANH function calculates the hyperbolic tangent of 1, which results in 0.761594155955765.
Example
Section titled “Example”SELECT TANH(0.5) as Result;Output
Section titled “Output” Result----------0.46211716Explanation
Section titled “Explanation”The TANH function in PostgreSQL calculates the hyperbolic tangent of the specified number. In this case, the hyperbolic tangent of 0.5 is approximately 0.46211716.