from __future__ import division
#Expressing the degree in radians
#Initialization
d=8 #Given degree
#Calculation
theta=d*0.01745 #Converting degree to radians
print "theta=",round(theta,2),"rad"
#Initialization
import math
#Cal of sin(120 degrees)
theta=120
print "sin 120=",round(math.sin(math.radians(theta)),3)
#Initialization
import math
#Cal of cos(250 degrees)
theta=250
print "cos 250=",round(math.cos(math.radians(theta)),3)
#Initialization
import math
#Cal of tan(342 degrees)
theta=342
print "tan 342=",round(math.tan(math.radians(theta)),3)
from __future__ import division
import math
#Cal of length of hypotenuse
#initialization
a=6 #Length of one side in in
b=12 #Length of other side in in
#Calculation
c=math.sqrt((a**2)+(b**2))
print "c=",round(c,1),"in"
from __future__ import division
import math
#Cal of length of other side
#initialization
c=8 #Length of hypotenuse in m
b=6 #Length of other side in m
#Calculation
a=math.sqrt((c**2)-(b**2))
print " a=",round(a,1),"m"