#Given
u1=1.50
u2=1.33
#Calculation
import math
sinr=u1*math.sin(50*3.14/180.0)/u2
a=math.asin(sinr)*180/3.14
#Result
print"Angle of refraction is", round(a,1),"degree"
#Given
u1=1.0
u2=1.526
i=45 #degree
#Calculation
sinr=(u1*math.sin(i*3.14/180.0))/u2
r=math.asin(sinr)*180/3.14
d=i-r
#Result
print"Angle of deviation is", round(d,2),"degree"
#Given
c=3.0*10**8
u=1.5
f=6*10**14 #Hz
#Calculation
v=c/u
l=c/f
lm=v/f
#Result
print"(i) Wavelength of light in air is", l,"m"
print"(ii) Wavelength of light in glass is",round(lm*10**7,1)*10**-7,"m"
#Given
ug=1.5
uw=1.3
vw=2.25*10**8
#Calculation
vg=(uw*vw)/ug
#Result
print"Speed of the light in glass is", vg*10**-8,"*10**8 m/s"
#Given
u=1.6
t=8
t1=4.5
u1=1.5
t2=6
u2=1.33
#Calculation
d=t*(1-(1/u))
d1=t1*(1-(1/u1))
d2=t2*(1-(1/u2))
D=d+d1+d2
#Result
print"Position of mark from the bottom is", round(D,0),"cm"
#Given
uw=1.33
uo=1.20
#Calculation
import math
uow=uw/uo
sinr=(math.sin(30*3.14/180.0))/uow
r=math.asin(sinr)*180/3.14
#Result
print"Angle of refraction in water is", round(r,1),"degree"
#Given
v=2.0*10**8 #m/s
c=3*10**8 #m/s
d=6.0 #cm
#Calculation
ug=c/v
a=d/ug
D=d-a
#Result
print"Distance through which ink dot appears to be raised is", D,"cm"
#Given
ug=1.5
uw=1.33
#Calculation
u1=ug/uw
sinC=1/u1
C=math.asin(sinC)*180/3.14
#Result
print"Critical angle is", round(C,2),"degree"
#Given
v=1.5*10**8
c=3.0*10**8
#Calculation
import math
a=v/c
C=math.asin(a)*180/3.14
#Result
print"Value of critical angle is", round(C,0),"Degree"
#Given
uw=1.33
#Calculation
a=1/uw
b=math.sin(a)*180/3.14
#Result
print"Angle of refraction is", round(b,0),"degree"
#Given
a=4
b=6.0
#Calculation
import math
A=a/b
B=math.atan(A)*180/3.14
ur=1/(math.sin(B*3.14/180.0))
#Result
print"Refrective index of the liquid is", round(ur,1)
#Given
a=52 #Degree
b=33 #Degree
#Calculation
import math
u2=(math.sin(a*3.14/180.0))/(math.sin(b*3.14/180.0))
C=1/u2
A=math.asin(C)*180/3.14
#Result
print"Angle of refrection is", round(A,1),"Degree"
#Given
u=-240.0
R=15.0 #cm
u1=1.33
u2=1.5
#Calculation
v=1/((((u2-u1)/R)+(u1/u))/u2)
#Result
print"Position of the image is", round(v,0),"cm"
#Given
u=-9.0 #cm
y=1
y1=1.5
R=-15.0 #cm
#Calculation
v=1/(((y-y1)/R)-(y1/-u))
#Result
print"The value of distance is",v,"cm"
#Given
u=-15 #cm
y1=1
y2=1.5
R=-7.5 #cm
#Calculation
v=1/(((y1-y2)/R)-(y2/-u))
#Result
print"Position of the image is",v,"cm"
#Given
u=-60.0 #cm
R=25.0 #cm
y1=1
y2=1.5
#Calcution
v=1/((((y2-y1)/R)+(y1/u))/y2)
P=(y2-y1)/(R*10**-2)
#Result
print"Position of the image is", v,"cm"
print"Power of the refracting surface is", P,"dioptre"
#Given
u1=1
u2=1.5
R=1
#Calculation
x=(u1+u2)/(u2-u1)
#Result
print"Distance of the object is", x,"R"
#Given
R=7.5 #cm
u1=1
u2=1.33
#Calculation
v=1/(((u1-u2)/R))
#Result
print"It gets focused at", round(v,1),"cm"
#Given
u1=1
u2=1.5
u=-10
v=-40 #cm
#Calculation
R=-v*(u2-u1)/(u1+u2)
#Result
print"Curvature given to the bounding surface is", R,"cm (Convex)"
#Given
u1=1
u2=1.5
v=100 #cm
R=20.0 #cm
a=3
b=200.0
#Calculation
u1=(u2-u1)/R
u2=-1/(u1-(a/b))
d=-u2+R
#Result
print"The object distance from the centre of curvature is", d,"cm"
#Given
ug=1.5
R1=50.0 #cm
R2=-50.0 #cm
uw=9/8.0
#Calculation
f=1/((ug-1)*((1/R1)+(1/R1)))
f1=1/((uw-1)*((1/R1)+(1/R1)))
#Result
print"(i) Focal length in air is", f,"cm"
print"(ii) Focal lenth in water is", f1
#Given
fa=20 #cm
ug=9/8.0
uw=3/2.0
#Calculation
a=(uw-1)/(ug-1)
fw=a*fa
f=fw-fa
#Result
print"Change in focal length is", f,"cm"
#Given
u=1.56
R1=20.0 #cm
u1=-10.0 #cm
#Calculation
f=1/((u-1)*(2/R1))
v=1/((1/u1)+(1/f))
#Result
print"Position of the image formed is", round(v,2)
#Given
u=1.47
#Calculation
u1=u
#Result
print"The liquid is not water because refractive index of water is 1.33"
#Given
f=18 #cm
u=1.5
#Calculation
R=(u-1)*f
#Result
print"Radius of the curvature is", R,"cm"
#Given
u=-25.0 #cm
f=10.0 #cm
h1=5
#Calculation
v=1/((1/f)+(1/u))
h2=(v*h1)/u
#Result
print"Position of the image is", round(v,2),"cm"
print"Size of the image is",round(h2,2),"cm"
#Given
f=-15.0 #cm
v=-10.0 #cm
#Calculation
u=1/((1/v)-1/f)
#Result
print"The object is placed at a distance of", u,"cm"
#Given
v=-20.0 #cm
u=-60.0 #cm
#Calculation
f=1/((1/v)-(1/u))
#Result
print"Focal length of the lens is", f,"cm"
print"The lens is diverging"
#Given
u=-10.0 #cm
m=-3.0
#Calculation
v=m*u
f=1/((1/v)-(1/u))
#Result
print"Image formed at",v,"cm"
print"Focal length is",f,"cm"
#Given
P1=6
P2=-2.0
#Calculation
P=P1+P2
f=1/P
#Result
print"Focal length of the combination is", f*10**2,"cm"
print"Power of the combinationis",P,"D"
#Given
f1=20.0 #cm
f2=-40.0 #cm
#Calculation
f=1/((1/f1)+(1/f2))
P=1/f
#Result
print"Focal length is", f,"cm"
print"Power is",P*10**2,"D"
#Given
a=2.0
b=1
#Calculation
u=(b/a)+b
#Result
print"Refractive index of the material is", u
#Given
f=-0.2 #m
v=0.3 #m
#Calculation
u=1/((1/v)-(1/f))
#Result
print"Position of the point is", u,"m"
#Given
u1=-30.0 #cm
f1=10.0
u2=10
f2=-10.0
#calculation
v1=1/((1/u1)+(1/f1))
v2=1/((1/u2)+(1/f2))
v3=-u1
#Result
print"Position of the image for first lens is", v1,"cm"
print"Position of the image for second lens is", round(v2*10**-2,0),"cm"
print"Position of the image for third lens is", v3,"cm"