tan#
- rbc.stdlib.elementwise_functions.tan(x)#
Calculates an implementation-dependent approximation to the tangent for each element x_i of the input array x.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('double[](double[])') ... def array_api_tan(x): ... return array_api.tan(x) >>> array_api_tan([-np.pi, np.pi/2, np.pi]).execute() array([ 1.2246469e-16, 1.6331239e+16, -1.2246469e-16], dtype=float32)