jax.numpy.radians

Warning

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

jax.numpy.radians¶

jax.numpy.radians(x)¶

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