atan¶
- atan(x: array, /) array ¶
Calculates an implementation-dependent approximation of the principal value of the inverse tangent, having domain
[-infinity, +infinity]
and codomain[-π/2, +π/2]
, for each elementx_i
of the input arrayx
. Each element-wise result is expressed in radians.Special cases
For floating-point operands,
If
x_i
isNaN
, the result isNaN
.If
x_i
is+0
, the result is+0
.If
x_i
is-0
, the result is-0
.If
x_i
is+infinity
, the result is an implementation-dependent approximation to+π/2
.If
x_i
is-infinity
, the result is an implementation-dependent approximation to-π/2
.
- Parameters:
x (array) – input array. Should have a floating-point data type.
- Returns:
out (array) – an array containing the inverse tangent of each element in
x
. The returned array must have a floating-point data type determined by Type Promotion Rules.