I have made a Trignometric calculator (Kind of - it only uses the sine ratio as of now) but I can't get it to work right. I get an error that says math is not defined when it's supposed to get the length of the line. Here is my code:
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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…