#importing module
import math
from __future__ import division
#Variable declaration
theta=math.radians(60) #angle in radians
#Calculations
Intensityred=100-(1-math.cos(theta)**2)*100
#Result
print"Percentage of light that passes through= ",Intensityred,"%"
#importing module
import math
from __future__ import division
#Variable declaration
lamda=6000 #wavlenght in Armstrong
#Calculations
Ie=3/4
Io=1/4
Ratio=Ie/Io
#Result
print"Ratio of the two intensities Ie:Io = 3:1"
#importing module
import math
from __future__ import division
#Variable declaration
myu=1.55 #refractive index of glass
#Calculations
theta_p=math.degrees(math.atan(myu))
theta_r=math.degrees(math.asin(math.sin(math.radians(theta_p))/1.55))
Total=theta_p+theta_r
#Result
print"Angle of polarization= %2.3f degrees" %theta_p
print"Angle between reflected and refracted ray= %i degrees" %Total
#importing module
import math
from __future__ import division
#Variable declaration
lamda=6000*10**-8 #wavelength
no=1.544 #refractive index of O-ray
ne=1.553 #refractive index of E-ray
#Calculations
t=lamda/(4*(ne-no))/10**-3
#Result
print"thickness of a quarterwave plate= %1.2f*10**-5 m" %t
#importing module
import math
from __future__ import division
#Variable declaration
lamda=6000*10**-8 #wavelength
no=1.54 #refractive index of O-ray
ne=1.55 #refractive index of E-ray
#Calculations
t=lamda/(6*(ne-no))
#Result
print"thickness of a quarterwave plate= %1.3f" %t
#importing module
import math
from __future__ import division
#Variable declaration
lamda=6000*10**-8 #wavelength
no=1.54 #refractive index of O-ray
ne=1.55 #refractive index of E-ray
#Calculations
t=lamda/(2*(ne-no))
#Result
print"thickness of a quarterwave plate= %1.3f cm" %t
#importing module
import math
from __future__ import division
#Variable declaration
l=2 #length of the tube
s=60 #specific rotation
theta=12 #angle of rotation of plane vibration
#Calculations
C=theta/(l*s)*100
#Result
print"The solution is of %i%%" %C