89
Numpy rad2deg() method
This function is used to convert the angles from radians to degrees.
Syntax
Parameters
- array: these are the angles whose degree values are to be calculated.
- Out: It is the shape of the output array.
Return
It returns an array containing equivalent degree angles of the radians given in the input array.
Example
Output:
Input array : [0, 1.5707963267948966, 0.7853981633974483, 0.5235987755982988] Degree value : [ 0. 90. 45. 30.]
Next TopicNumpy radians()