PostgreSQL atanh() Function
The PostgreSQL atanh() function returns the inverse hyperbolic tangent of the specified number.
atanh() Syntax
This is the syntax of the PostgreSQL atanh() function:
atanh(number)
Parameters
number- 
Required. The number used to compute the inverse hyperbolic tangent. It must be between -1 and 1, inclusive.
 
Return value
The PostgreSQL atanh() function returns the inverse hyperbolic tangent of the specified number.
If the value of the parameter is not between -1 and 1 (including -1 and 1), the atanh() function will throw an error: “input out of range”.
If the parameter number is NULL, the atanh() function will return NULL.
atanh() Examples
Here are a few examples of the atanh() function:
SELECT
    atanh(-1) AS "atanh(-1)",
    atanh(-0.5) AS "atanh(-0.5)",
    atanh(0) AS "atanh(0)",
    atanh(0.5) AS "atanh(0.5)",
    atanh(1) AS "atanh(1)";
-[ RECORD 1 ]--------------------
atanh(-1)   | -Infinity
atanh(-0.5) | -0.5493061443340549
atanh(0)    | 0
atanh(0.5)  | 0.5493061443340549
atanh(1)    | Infinity