#importing modules
import math
from __future__ import division
#Variable declaration
NA=0.39; #numerical aperture
delta=0.05; #refractive index of cladding
#Calculation
n1=NA/math.sqrt(2*delta); #refractive index of core
#Result
print "refractive index of core is",round(n1,3)
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.563; #Core refractive index
n2=1.498; #Cladding refractive index
#Calculation
delta=(n1-n2)/n1; #fractional index change
#Result
print "fractional index change is",round(delta,5)
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.55; #Core refractive index
n2=1.50; #Cladding refractive index
#Calculation
NA=math.sqrt(n1**2-n2**2); #numerical aperture
#Result
print "numerical aperture is",round(NA,2)
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.563; #Core refractive index
n2=1.498; #Cladding refractive index
#Calculation
NA=math.sqrt(n1**2-n2**2); #numerical aperture
theta0=math.asin(NA); #acceptance angle(radian)
theta0=theta0*180/math.pi; #acceptance angle(degrees)
#Resul"
print "acceptance angle is",round(theta0,2),"degrees"
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.53; #Core refractive index
n2=1.42; #Cladding refractive index
#Calculation
thetac=math.asin(n2/n1); #critical angle(radian)
thetac=thetac*180/math.pi; #critical angle(degrees)
#Resul"
print "critical angle is",round(thetac,2),"degrees"
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.6; #Core refractive index
n0=1.33; #refractive index of air
n2=1.4; #Cladding refractive index
#Calculation
NA=math.sqrt(n1**2-n2**2)/n0; #numerical aperture
theta0=math.asin(NA); #acceptance angle(radian)
theta0=theta0*180/math.pi; #acceptance angle(degrees)
#Resul"
print "acceptance angle is",round(theta0,2),"degrees"
print "answer in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.5; #Core refractive index
n2=1.3; #Cladding refractive index
#Calculation
delta=(n1-n2)/n1; #fractional index change
#Result
print "fractional index change is",round(delta,3)
#importing modules
import math
from __future__ import division
#Variable declaration
n1=1.55; #Core refractive index
n2=1.6; #Cladding refractive index
theta1=60*math.pi/180; #incident angle(degrees)
#Calculation
x=n1*math.sin(theta1)/n2;
theta2=math.asin(x); #refraction angle(radian)
theta2=theta2*180/math.pi; #refraction angle(degrees)
#Result
print "refraction angle is",round(theta2,2),"degrees"
#importing modules
import math
from __future__ import division
#Variable declaration
n2=1.3; #Cladding refractive index
delta=0.140; #fractional index change
#Calculation
n1=n2/(1-delta); #Core refractive index
#Result
print "refractive index of core is",round(n1,2)
#importing modules
import math
from __future__ import division
#Variable declaration
theta0=26.80*math.pi/180; #acceptance angle(radian)
#Calculation
NA=math.sin(theta0); #numerical aperture
#Result
print "numerical aperture is",round(NA,5)