#Given
A=60 #Degree
i=49
#Calculation
import math
r=A/2.0
u=math.sin(i*3.14/180.0)/math.sin(r*3.14/180.0)
#Result
print "Refractive index is",round(u,2)
#Given
u=1.5
A=60 #Degree
#Calculation
import math
a1=A/2.0
a=u*math.sin(a1*3.14/180.0)
a2=math.asin(a)*180/3.14
X=(a2*2)-A
i=(A+X)/2.0
#Result
print"Angle of deviation is", round(X,1),"degree"
print"Angle of incidence is",round(i,1),"degree"
#Given
A=60 #Degree
ug=1.53
uw=1.33
#Calculation
import math
ug1=ug/uw
a2=A/2.0
a1=ug1*math.sin(a2*3.14/180.0)
a2=math.asin(a1)*180/3.14
d=(a2*2)-A
#Result
print"Angle of minimum deviation is", round(d,1),"Degree"
#Given
ug=1.6
uw=1.33
i=40 #Degree
A=60
#Calculation
ug1=ug/uw
r1=math.asin(math.sin(i*3.14/180.0)/ug1)*180/3.14
r2=A-r1
e=math.asin(ug1*math.sin(r2*3.14/180.0))*180/3.14
d=i+e-A
#Result
print"Angle of deviation is", round(d,0),"Degree"
#Given
A=60 #degree
ur=1.622
uv=1.663
#Calculation
a=A*(uv-ur)
#Result
print"Angle of dispersion between red and violet color is",a,"degree"
#Given
A=60 #Degree
ab=53
ar=51
a=52.0
#Calculation
w=(ab-ar)/a
#Result
print"Dispersive power is",round(w,4)
#Given
ub=1.522
ur=1.514
ub1=1.662
ur1=1.644
#Calculation
u=(ub+ur)/2.0
w=(ub-ur)/(u-1)
u1=(ub1+ur1)/2.0
w1=(ub1-ur1)/(u1-1)
#Result
print"Dispersive power of crown glass is",round(w,4)
print"Dispersive power of flint galss is",round(w1,4)
#given
w=0.031
ur=1.645
ub=1.665
#Calculation
u=1+((ub-ur)/w)
#Result
print"Refractive index is",round(u,3)
#Given
uv=1.523
ur=1.515
A=5 #Degree
uv1=1.688
ur1=1.650
#Calculation
u=(uv+ur)/2.0
u1=(uv1+ur1)/2.0
A1=-(5*(u-1))/(u1-1)
#Result
print"Angle of flint glass prism is",round(A1,2),"Degree"
#Given
w=0.021
u=1.53
w1=0.045
u1=1.65
A1=4.2 #degree
#Calculation
A=-w1*A1*(u1-1)/(w*(u-1))
d=-(A*(u-1)+A1*(u1-1))
#Result
print"Angle of prism is", d,"Degree"
#Given
A=40 #degree
u=1.54
#Calculation
import math
i=math.asin(u*math.sin(A*3.14/180.0))*180/3.14
#Result
print"Angle of incidence is",round(i,2),"Degree"
#Given
u=1.524
A=60 #degree
C=41 #degree
#calculation
import math
C1=1/u
A1=math.asin(C1)*180/3.14
r1=A-C
i=u*math.sin(r1*3.14/180.0)
A2=math.asin(i)*180/3.14
#Result
print"Angle of incidence is", round(A2,2),"Degree"
#Given
u=0.015
w=0.03
u1=0.022
w1=0.05
a=2 #degree
#Calculation
A=-u1/u
A1=a/(A/2.0+u1/w1)
a2=A*A1
print"Angle of 1st prism is", round(A1,2),"Degree"
print"Angle of 2nd prism is",a2,"Degree"