jax.numpy.deg2rad

jax.numpy.deg2rad(x)[source]

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

ndarray

See also

rad2deg()

Convert angles from radians to degrees.

unwrap()

Remove large jumps in angle by wrapping.

Notes

New in version 1.3.0.

deg2rad(x) is x * pi / 180.

Examples

>>> np.deg2rad(180)
3.1415926535897931