webgpupy.cos#

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

Trigonometric cos, 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

sin

Examples

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