summaryrefslogtreecommitdiff
path: root/374/CH2/EX2.3/23.sci
blob: 720b60fb547149c1ca1b928f2f6bcb18d79d4180 (plain)
1
2
3
4
5
6
7
8
9
10
11
//chapter2.example.3//
clc
clear
//core refractive indices of stepindex fibre=n1,cladding refractive indices of stepindex fibre=n2,wavelength=l,phase constant=b,maximum value of phase constant=b1,minimum value of phase constant=b2;//
n1=1.6;
n2=1.44;
l=0.8*(10^-3);
b1=(2*%pi*n1)/(l*(10^3));//in rad/mm//
b2=(2*%pi*n2)/(l*(10^3));//in rad/mm//
printf("\nmaximum value of phase constant=%f rad/mm\n",b1);
printf("\nminimum value of phase constant=%f rad/mm\n",b2);