tf.keras.ops.arccos
Тригонометрический арккосинус, поэлементно.
tf.keras.ops.arccos(
x
)
Обратный cos, так что, если y = cos(x), то x = arccos(y).
| Аргументы | |
|---|---|
x | Входной тензор. |
| Возвращаемые значения | |
|---|---|
Тензор угла луча, пересекающего единичную окружность в заданной x-координате, в радианах [0, pi]. |
Пример:
x = keras.ops.convert_to_tensor([1, -1]) keras.ops.arccos(x) array([0.0, 3.1415927], dtype=float32)
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/ops/arccos