Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/index.ts:1055nerdamer.atanh
nerdamer.atanh(x: ExpressionInput): ExpressionComputes the inverse hyperbolic tangent of an expression.
- atanh(0) = 0
- For inputs outside (-1, 1) or complex inputs, uses the identity
atanh(z) = (1/2)·ln((1 + z)/(1 − z)).
Errors
core!UndefinedError If x is ±∞ or exactly ±1.
Details
The logarithmic branch points at ±1 are singular, irrespective of the principal-value convention on the real-axis cuts beyond those points. See NIST DLMF §4.37, especially (4.37.3) and (4.37.24)–(4.37.25). https://dlmf.nist.gov/4.37
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The input expression (domain (-1, 1) for real results). |
Returns
Expression — The inverse hyperbolic tangent of x.
Examples
atanh(0).text() // "0"
// Symbolic
atanh('x').text() // "atanh(x)"