<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/ops/numpy.py#L785-L805) |

Trigonometric inverse cosine, element-wise.

#### View aliases


**Main aliases**

[`tf.keras.ops.numpy.arccos`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/arccos)

<br />

    tf.keras.ops.arccos(
        x
    )

The inverse of `cos` so that, if `y = cos(x)`, then `x = arccos(y)`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Tensor of the angle of the ray intersecting the unit circle at the given x-coordinate in radians `[0, pi]`. ||

<br />

#### Example:

    x = keras.ops.convert_to_tensor([1, -1])
    keras.ops.arccos(x)
    array([0.0, 3.1415927], dtype=float32)