tan

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

Computes tangent element-wise. Equivalent to f.sin(x)/f.cos(x) 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 tangent of x element-wise.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty