我已经制作了一个Trignometric计算器(种类 - 它只使用现在的正弦比),但我不能让它正常工作.我得到一个错误,表示数学未定义时应该得到该行的长度.这是我的代码:
trig = raw_input ('What are you looking for? A) I have the opposite, and I want the Hypotenuse. ')
if trig.lower() == 'a':
ang = raw_input ('Please enter the measure of the angle you have ')
line = raw_input ('Please enter the length of the opposite! ')
math.asin (ang)*line
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3676 次 |
| 最近记录: |