dpnp.radians

dpnp.radians(x1, **kwargs)[source]

Convert angles from degrees to radians.

For full documentation refer to numpy.radians.

Limitations

Input array is supported as dpnp.ndarray. Input array data types are limited by supported DPNP Available array data types.

See also

dpnp.deg2rad equivalent function.

Examples

>>> import dpnp as np
>>> deg = np.arange(6.) * 30.
>>> out = np.radians(deg)
>>> [i for i in out]
[0.0, 0.52359878, 1.04719755, 1.57079633, 2.0943951, 2.61799388]