弧度 ()
使用公式 radians = (PI / 180 ) * angle_in_degrees 将角度值 (以度为单位) 转换为以弧度为单位的值
语法
radians(A.)
参数
- a: 角度 (实数)。
退货
- 以度数指定的角度的相应角度 (以弧度为单位)。
示例
print radians0 = radians(90), radians1 = radians(180), radians2 = radians(360)
结果
| radians0 | radians1 | radians2 |
|---|---|---|
| 1.5707963267949 | 3.14159265358979 | 6.28318530717959 |