Numpy deg2rad() method

This function is used to convert the angles from degree to radian.

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 to the radian given in the input array.

Example

Output:

Input array : 
 [0, 1.5707963267948966, 0.7853981633974483, 0.5235987755982988]

 Radian value : 
 [0.         0.02741557 0.01370778 0.00913852]

Next TopicNumpy hypot()




Latest Courses