cos

ivy.cos(x, f=None)[source]

Computes trigonometric cosine element-wise.

Parameters
  • x (array) – Input array, in radians (2*pi radian equals 360 degrees).

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

The cosine of x element-wise.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty