Javatpoint Logo
Javatpoint Logo

Numpy rad2deg() method

This function is used to convert the angles from radians to degrees.

Syntax

Parameters

  1. array: these are the angles whose degree values are to be calculated.
  2. 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()




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA