如何使用Python将弧度转换为度?
发布于 2021-01-29 15:06:04
在math
模块中,我只能找到math.cos(x)
带有cos
/ sin / tan / acos / asin / atan的。这将返回以弧度为单位的答案。如何获得度数的答案?
这是我的代码:
import math
x = math.cos(1)
y = x * 180 / math.pi
print(y)
30.9570417874
我的度数计算器为我提供:
cos(1)
0.9998476...
关注者
0
被浏览
97
1 个回答