Convert angles from degrees to radians. This is the same function as radians, but deg2rad is a more descriptive name.
Parameters: | x : array_like
|
---|---|
Returns: | y : ndarray
|
See also
Notes
deg2rad(x) is x * pi / 180.
Examples
>>> np.deg2rad(180)
3.1415926535897931