jax.numpy.deg2rad

Warning

This page was created from a pull request (#9655).

jax.numpy.deg2rad¶

jax.numpy.deg2rad(x)[source]¶

Convert angles from degrees to radians.

LAX-backend implementation of deg2rad().

Original docstring below.

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