summaryrefslogtreecommitdiff
path: root/3669/CH11/EX11.10/10.sce
blob: fa5a22b12632d71a111dde98cd33faad38343059 (plain)
1
2
3
4
5
6
7
8
9
10

//Variable declaration
n1=1.45;      //refractive index of core
n2=1.44;      //refractive index of cladding

//Calculation
delta=(n1-n2)/n1;      //fractional refractive indices change

//Result
printf('fractional refractive indices change is %0.3f  *10**-3   \n',(delta*10**3))