184:三角関数を計算する
mathモジュールを使います。math.piは3.14のことです。
>>> math.sin(math.pi/2) 1.0 >>> math.cos(math.pi) -1.0 >>> math.tan(math.pi/4) 0.99999999999999989