atan#

rbc.stdlib.elementwise_functions.atan(x)#

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

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('double[](double[])')
... def array_api_atan(arr):
...     return array_api.atan(arr)
>>> array_api_atan([0, 1, np.pi/4]).execute()
array([0.        , 0.7853982 , 0.66577375], dtype=float32)

Array-API ‘atan’ doc