summaryrefslogtreecommitdiff
path: root/1883/CH3/EX3.4.4/Example3_12.sce
blob: f01b5ce0b41b4e9ddcfa17fab8f7784bb056ffaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Chapter-3,Example3_4_4,pg 3-12

wavelength=1*10^-6                                                      //wavelength of light 

d=6*10^-6                                                        //diameter of core

n1=1.45                                                          //refractive index of core

n2=1.448                                                         //refractive index of cladding 

angle_c=asind(n2/n1)                                               //critical angle is    'sin(angle_c) = n2/n1'

printf("\nThe critical angle is  angle_c = %.f Degree\n",angle_c)

NA=sqrt(n1^2-n2^2)

angle_0=asind(NA)                                              //acceptance angle is    'sin(angle_0) = NA = sqrt(n1^2-n2^2)'

printf("\nThe acceptance angle is  angle_0 =  %.3f Degree\n",angle_0)

N=%pi^2*d^2*NA^2/(2*wavelength^2)                                       //the number of modes propogating through fibre 

printf("\nthe number of modes propogating through fibre is  N = %.f\n",N)