此功能用于将角度从度转换为弧度。
句法
numpy.radians(array, out)
参数
- 数组:这些是要计算其弧度值的角度。
- Out:这是输出数组的形状。
返回
它返回一个数组, 其中包含输入数组中给定度数的等效弧度角。
例子
import numpy as np
arr = [0, 30, 60, 90 ]
print ("Input array : \n", arr)
radval = np.radians(arr)
print ("\n Radian value : \n", radval)
输出
Input array :
[0, 30, 60, 90]
Radian value :
[0. 0.52359878 1.04719755 1.57079633]
来源:
https://www.srcmini02.com/30854.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_35694.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57