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