numpy.rad2deg

numpy.rad2deg(x[, out])

Convert angles from radians to degrees. This is the same function as degrees but is preferred because its more descriptive name.

Parameters:

x : array_like

Angle in radians.

Returns:

y : ndarray

The corresponding angle in degrees.

See also

degrees
Convert angles from radians to degrees.
deg2rad
Convert angles from degrees to radians.
radians
Convert angles from degrees to radians.
unwrap
Remove large jumps in angle by wrapping.

Notes

rad2deg(x) is 180 * x / pi.

Examples

>>> np.rad2deg(np.pi/2)
90.0

This Page

Quick search