webgpupy.sin#

webgpupy.sin(x, /, *, where=True, dtype=None) = <ufunc webgpupy_sin>#

Trigonometric sine, element-wise.

Parameters:
xarray_like

Input Array

wherearray_like, optional

At locations where the condition is True value is computed, else locations where the condition is False will remain uninitialized.

See also

cos

Examples

>>> import webgpupy as wp
>>> x = wp.array([0.0])
>>> wp.sin(x).tolist()
[0.0]