Math Functions

math.atanh()

Compute inverse hyperbolic tangent for real inputs strictly between -1 and 1.

Formal Syntax & Structure

python syntaxpython
math.atanh(x, /)

Parameters & Attributes

NameTypeDescription
xreal numberInput real value.

Return Value

float

Floating-point result; finite precision and domain restrictions apply.

Working Example

Example Snippetpython
import mathprint(math.atanh(0))
Python Reference