How Atanh() Works in PostgreSQL

In PostgreSQL, atanh() is a hyperbolic function that returns the inverse hyperbolic tangent of its argument.

The argument and return value are provided as a double precision value.

Syntax

The syntax goes like this:

atanh(x)

Where x is a double precision value.

Example

Here’s an example to demonstrate.

SELECT atanh(.5);

Result:

0.5493061443340549

About Hyperbolic Functions

Hyperbolic functions come from measurements made on a hyberbola.

Whereas the trigonometric functions relate to a circle, the hyperbolic functions relate to a hyperbola.

In mathematics, a hyperbola is basically two curves that are like infinite bows.

The following websites provide more information about hyperbola and hyperbolic functions: