sin#

rbc.stdlib.elementwise_functions.sin(x)#

Calculates an implementation-dependent approximation to the sine for each element x_i of the input array x.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('double(double)')
... def array_api_sin(x):
...     return array_api.sin(x)
>>> array_api_sin(np.pi/2.).execute()
1.0

Array-API ‘sin’ doc