Python numpy.degrees()
numpy.degree()是一个数学函数,帮助用户将角度从弧度转换为度。
语法 : numpy.degrees(x[, out]) = ufunc ‘degrees’)
参数 :
array :[array_like]元素的单位是弧度。
out :[ndaaray, optional] 输出与x相同形状的数组。
2pi 弧度=360度
返回 :一个用度数值代替弧度值的数组。
**代码 #1 : **
输出 :
numpy.rad2deg(x[, out]) = ufunc ‘rad2deg’) :这个数学函数帮助用户将角度从弧度转换为度。
Parameters :
array : [array_like] elements are in radians.
out : [ndaaray, optional] Output array of same shape as x.
2pi Radians = 36o degreesReturn : Corresponding angles in degree.
代码#2:rad2deg() 等同于degree()
输出 :