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