This is documentation for an old release of NumPy (version 1.7.0). Read this page in the documentation of the latest stable release (version > 1.17).
Convert angles from degrees to radians.
Parameters : | x : array_like
|
---|---|
Returns : | y : ndarray
|
See also
Notes
New in version 1.3.0.
deg2rad(x) is x * pi / 180.
Examples
>>> np.deg2rad(180)
3.1415926535897931