acos¶
- acos(x: array, /) array¶
Calculates an implementation-dependent approximation of the principal value of the inverse cosine, having domain
[-1, +1]and codomain[+0, +π], for each elementx_iof the input arrayx. Each element-wise result is expressed in radians.Special cases
For floating-point operands,
If
x_iisNaN, the result isNaN.If
x_iis greater than1, the result isNaN.If
x_iis less than-1, the result isNaN.If
x_iis1, the result is+0.
- Parameters:
x (array) – input array. Should have a floating-point data type.
- Returns:
out (array) – an array containing the inverse cosine of each element in
x. The returned array must have a floating-point data type determined by Type Promotion Rules.