acos

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

Computes trigonometric inverse cosine element-wise. The inverse of cos so that, if y = cos(x), then x = arccos(y).

Parameters
  • x (array) – x-coordinate on the unit circle. For real arguments, the domain is [-1, 1].

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

Returns

The angle of the ray intersecting the unit circle at the given x-coordinate in radians [0, pi].


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty