numpy.deg2rad(x[, out]) =
Convert angles from degrees to radians.
Parameters: |
x : array_like Angles in degrees. |
---|---|
Returns: |
y : ndarray The corresponding angle in radians. |
See also
New in version 1.3.0.
deg2rad(x)
is x * pi / 180
.
>>> np.deg2rad(180) 3.1415926535897931
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.deg2rad.html