jax.numpy.degrees¶
-
jax.numpy.
degrees
(x)¶ Convert angles from radians to degrees.
LAX-backend implementation of
rad2deg()
. Original docstring below.rad2deg(x, /, out=None, *, where=True, casting=’same_kind’, order=’K’, dtype=None, subok=True[, signature, extobj])
- Parameters
x (array_like) – Angle in radians.
- Returns
y – The corresponding angle in degrees. This is a scalar if x is a scalar.
- Return type
See also
Notes
New in version 1.3.0.
rad2deg(x) is
180 * x / pi
.Examples
>>> np.rad2deg(np.pi/2) 90.0