Błąd mówiący, że nazwa „matematyka” nie jest zdefiniowana podczas próby użycia asin ()
Zrobiłem kalkulator Trignometric (rodzaj - używa tylko współczynnika sinus jak na razie), ale nie mogę go uruchomić. Dostaję błąd, który mówi, że matematyka nie jest zdefiniowana, kiedy ma uzyskać długość linii. Oto mój kod:
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