How can I calculated the angle in formula: sin(alpha) = a if I known a before.
Like example: sin(alpha) = 0.021 => alpha ?
Anybody can help me code the script to find out alpha value (angle)?
Thanks!
答案 0 :(得分:1)
这可以通过Math模块完成。这是代码:
import math
# To calculate 90 radian
a = math.sin(90*(math.pi)/180)
print(a)
# 1.0
b = math.asin(1.0)*180/(math.pi)
print(b)
# 90.0
有效。