acos#

rbc.stdlib.elementwise_functions.acos(x)#

Calculates an implementation-dependent approximation of the principal value of the inverse cosine for each element x_i of the input array x.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('double[](double[])')
... def array_api_acos(arr):
...     return array_api.acos(arr)
>>> array_api_acos([1., -1.]).execute()
array([0.       , 3.1415927], dtype=float32)

Array-API ‘acos’ doc