I made a trigonometric calculator (look - it uses the sine ratio only now), but I can not get it to work correctly. I get an error message that says math is not defined when it is supposed to get the length of a string. 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
source share