我的谭解算器出了什么问题?

时间:2016-03-10 13:38:35

标签: python python-2.7 trigonometry

我的tan解算器正在进行中,但是当我运行它时。它没有超过known_side

 import math
angle = raw_input("what is the angle of your triangle ?")
solve_side = raw_input("For adjacent enter 1,opposite 2 and Hypotneous 3")
known_side = raw_input("For adjacent enter 1,oppsite 2 and Hypotneous 3")
if solve_side == 1 and known_side == 2 :
    length_opposite = raw_input("length of the oppisite")
    answer = math.tan(angle) / length_opposite
    print answer

0 个答案:

没有答案