atanh¶
- atanh(x: array, /) array¶
Calculates an implementation-dependent approximation to the inverse hyperbolic tangent, having domain
[-1, +1]and codomain[-infinity, +infinity], for each elementx_iof the input arrayx.Special cases
For floating-point operands,
If
x_iisNaN, the result isNaN.If
x_iis less than-1, the result isNaN.If
x_iis greater than1, the result isNaN.If
x_iis-1, the result is-infinity.If
x_iis+1, the result is+infinity.If
x_iis+0, the result is+0.If
x_iis-0, the result is-0.
- Parameters:
x (array) – input array whose elements each represent the area of a hyperbolic sector. Should have a floating-point data type.
- Returns:
out (array) – an array containing the inverse hyperbolic tangent of each element in
x. The returned array must have a floating-point data type determined by Type Promotion Rules.