diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1619/CH1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1619/CH1')
29 files changed, 452 insertions, 0 deletions
diff --git a/1619/CH1/EX1.14.1/Example1_14_1.sce b/1619/CH1/EX1.14.1/Example1_14_1.sce new file mode 100755 index 000000000..2be1863a9 --- /dev/null +++ b/1619/CH1/EX1.14.1/Example1_14_1.sce @@ -0,0 +1,14 @@ +//Example 1.14.1 page 1.41
+// To calculate the number of modes...
+
+clc;
+clear;
+d = 50*10^-6; // diameter of fibre...
+n1 = 1.48; //RI of core..
+n2 = 1.46; //RI of cladding..
+lamda = 0.82*10^-6; //wavelength of light..
+
+NA = sqrt(n1^2-n2^2); // Numerical Aperture..
+Vn= %pi*d*NA/lamda; //normalised frequency...
+M = Vn^2/2; // number of modes...
+printf(" The number of modes in the fibre are %d",M);
diff --git a/1619/CH1/EX1.14.10/Example1_14_10.sce b/1619/CH1/EX1.14.10/Example1_14_10.sce new file mode 100755 index 000000000..722ee8e4a --- /dev/null +++ b/1619/CH1/EX1.14.10/Example1_14_10.sce @@ -0,0 +1,13 @@ +//Example 1.14.10 page 1.49
+//To find the diameter of the core..
+
+clc;
+clear;
+
+del= 0.01; //Relative RI difference..
+n1= 1.5;
+M= 1100; //Number of modes...
+lamda= 1.3; //wavelength of operation in um..
+V= sqrt(2*M); //Normalised frequency...
+d= V*lamda/(%pi*n1*sqrt(2*del)); //diameter of core..
+printf('The diameter of the core is %.2f um',d);
diff --git a/1619/CH1/EX1.14.11/Example1_14_11.sce b/1619/CH1/EX1.14.11/Example1_14_11.sce new file mode 100755 index 000000000..ab9d880b0 --- /dev/null +++ b/1619/CH1/EX1.14.11/Example1_14_11.sce @@ -0,0 +1,20 @@ +//Example 1.14.11
+//To find Numerical Aperture,Solid Acceptance angle,Normalised frequency,Number of modes..
+
+clc;
+clear;
+
+n1= 1.5; // RI of core..
+n2= 1.38; //RI of cladding..
+a= 25*10^-6; //radius of core..
+lamda= 1300*10^-9; // wavelength of operation...
+NA= sqrt(n1^2-n2^2); //Numerical Aperture..
+printf('The Numerical Aperture of the given fibre is %.4f',NA);
+V= 2*%pi*a*NA/lamda; //Normalised frequency..
+printf('\n\nThe normalised frequency is %.2f',V);
+
+theta= asind(NA); //Solid acceptance anglr..
+printf('\n\nThe Solid acceptance angle is %d degrees',theta);
+M= V^2/2; //Number of modes..
+printf("\n\nThe number of modes in the fibre are %d",M);
+printf("\n\n***Number of modes wrongly calculated in the book..");
diff --git a/1619/CH1/EX1.14.12/Example1_14_12.sce b/1619/CH1/EX1.14.12/Example1_14_12.sce new file mode 100755 index 000000000..776dc98c3 --- /dev/null +++ b/1619/CH1/EX1.14.12/Example1_14_12.sce @@ -0,0 +1,25 @@ +//Example 1.14.12
+//To find noramlised frequency and number of modes
+
+clc;
+clear;
+
+lamda= 850*10^-9; //wavelength of operation.
+a= 25*10^-6; //Radius of core
+n1= 1.48; //RI of Core...
+n2= 1.46; //RI of cladding..
+
+NA= sqrt(n1^2-n2^2); //Numerical Aperture
+
+V= 2*%pi*a*NA/lamda; //Normalised frequency..
+printf('The normalised frequency is %.2f',V);
+
+lamda1= 1320*10^-9; // wavelength changed...
+V1= 2*%pi*a*NA/lamda1; //Normalised frequency at new wavelength..
+
+M= V1^2/2; //Number of modes at new wavelength..
+printf("\n\nThe number of modes in the fibre at 1320um are %d",M);
+lamda2= 1550*10^-9; //wavelength 2...
+V2= 2*%pi*a*NA/lamda2; //New normalised frequency..
+M1= V2^2/2; // number of modes..
+printf("\n\nThe number of modes in the fibre at 1550um are %d",M1);
diff --git a/1619/CH1/EX1.14.2/Example1_14_2.sce b/1619/CH1/EX1.14.2/Example1_14_2.sce new file mode 100755 index 000000000..d29bee1a5 --- /dev/null +++ b/1619/CH1/EX1.14.2/Example1_14_2.sce @@ -0,0 +1,10 @@ +//Example 1.14.2 page 1.42
+//to find the Numerical aperture..
+
+clc;
+clear;
+V = 26.6; //Normalised frequency..
+lamda = 1300*10^-9; //wavelenght of operation
+a = 25*10^-6; // radius of fibre.
+NA = V*lamda/(2*%pi*a); //Numerical Aperture..
+printf("The Numerical Aperture is %.3f",NA);
diff --git a/1619/CH1/EX1.14.3/Example1_14_3.sce b/1619/CH1/EX1.14.3/Example1_14_3.sce new file mode 100755 index 000000000..54e9db7bf --- /dev/null +++ b/1619/CH1/EX1.14.3/Example1_14_3.sce @@ -0,0 +1,18 @@ +//Example 1.14.3
+// to calculate the normalise frequency..
+
+clc;
+clear;
+
+a = 40*10^-6; //radius of core...
+del = 0.015; //relative RI difference..
+lamda= 0.85*10^-6; //wavelength of operation..
+n1=1.48; //RI of core..
+
+NA = n1*sqrt(2*del); //Numerical Aperture..
+printf(" The Numerical Aperture is %.4f",NA);
+V = 2*%pi*a*NA/lamda; //normalised frequency
+printf(" \n\nThe Normalised frequency is %.2f",V);
+
+M = V^2/2; //number of modes..
+printf("\n\nThe number of modes in the fibre are %d",M);
diff --git a/1619/CH1/EX1.14.4/Example1_14_4.sce b/1619/CH1/EX1.14.4/Example1_14_4.sce new file mode 100755 index 000000000..a2ee169cb --- /dev/null +++ b/1619/CH1/EX1.14.4/Example1_14_4.sce @@ -0,0 +1,19 @@ +//Example 1.14.4 page 1.43
+// to find diameter of core, number of modes at 1320, number of modes at 1550 um
+
+clc;
+clear;
+
+NA = 0.20; //Numerical Aperture..
+M = 1000; //number of modes..
+lamda = 850*10^-9; // wavelength of operation..
+
+a = sqrt(M*2*lamda^2/(%pi^2*NA^2)); // radius of core..
+a=a*10^6; //converting in um for displaying...
+printf("The radius of the core is %.2f um",a);
+a=a*10^-6;
+M1= ((%pi*a*NA/(1320*10^-9))^2)/2
+printf("\n\nThe number of modes in the fibre at 1320um are %d",M1);
+printf("\n\n***The number of modes in the fibre at 1320um is calculated wrongly in book");
+M2= ((%pi*a*NA/(1550*10^-9))^2)/2
+printf("\n\nThe number of modes in the fibre at 1550um are %d",M2);
diff --git a/1619/CH1/EX1.14.5/Example1_14_5.sce b/1619/CH1/EX1.14.5/Example1_14_5.sce new file mode 100755 index 000000000..3d5bf828a --- /dev/null +++ b/1619/CH1/EX1.14.5/Example1_14_5.sce @@ -0,0 +1,22 @@ +//Example 1.14.5 page 1.44
+//To find acceptance angle ; critical angle;number of modes..
+
+clc;
+clear;
+
+NA = 0.2; //Numerical Aperture..
+n2= 1.59; // RI of cladding..
+n0= 1.33; // RI of water..
+lamda = 1300*10^-9; // wavelength..
+a = 25*10^-6; // radius of core..
+n1 = sqrt(NA^2+n2^2); //RI of core..
+phiA= asind(sqrt(n1^2-n2^2)/n0); //Acceptance angle..
+printf("The Acceptance angle is %.2f",phiA);
+
+phiC= asind(n2/n1); // Critical angle..
+printf("\n\nThe critical angle is %.2f",phiC);
+V = 2*%pi*a*NA/lamda; // normalisd frequency
+M= V^2/2; //number of modes
+printf("\n\nThe number of modes in the fibre are %d",M);
+
+printf("\n\n***The value of the angle differ from the book because of round off errors.");
diff --git a/1619/CH1/EX1.14.6/Example1_14_6.sce b/1619/CH1/EX1.14.6/Example1_14_6.sce new file mode 100755 index 000000000..627ff59e6 --- /dev/null +++ b/1619/CH1/EX1.14.6/Example1_14_6.sce @@ -0,0 +1,17 @@ +//Example 1.14.6 page 1.46
+// To find Numerical Aperture, solid acceptance angle, and number of modes.
+
+clc;
+clear;
+
+V= 26.6; // Normalised frequency..
+lamda= 1300*10^-9; //wavelength of operation..
+a= 25*10^-6; // radius of core..
+
+NA = V*lamda/(2*%pi*a); //Numerical Aperture..
+printf('The Numerical Aperture is %.2f',NA);
+theta = %pi*NA^2; //solid Acceptance Angle..
+printf('\n\nThe solid acceptance angle is %.3f radians',theta);
+
+M= V^2/2; //number of modes..
+printf("\n\nThe number of modes in the fibre are %.2f",M);
diff --git a/1619/CH1/EX1.14.7/Example1_14_7.sce b/1619/CH1/EX1.14.7/Example1_14_7.sce new file mode 100755 index 000000000..be31a3478 --- /dev/null +++ b/1619/CH1/EX1.14.7/Example1_14_7.sce @@ -0,0 +1,20 @@ +//Example 1.14.7 page 1.47
+// Cutoff wavelength, MAx core diameter for single mode operation..
+
+clc;
+clear;
+
+n1= 1.49; // RI of core.
+n2=1.47; //RI of cladding..
+a= 2; //radius of core in um..
+NA= sqrt(n1^2-n2^2); // Numerical Aperture..
+// The maximum V number for single mode operation is 2.4...
+V= 2.4; //Normalised frequency..
+
+lamda = 2*%pi*a*NA/V; // Cutoff wavelength...
+printf('The cutoff wavelength is %.2f um',lamda);
+
+
+lamda1 = 1.310; // Givenn cutoff wavelength in um..
+d= V*lamda1/(%pi*NA); // core diameter..
+printf('\n\nThe core diameter is %.2f um',d);
diff --git a/1619/CH1/EX1.14.8/Example1_14_8.sce b/1619/CH1/EX1.14.8/Example1_14_8.sce new file mode 100755 index 000000000..5f26f6ba4 --- /dev/null +++ b/1619/CH1/EX1.14.8/Example1_14_8.sce @@ -0,0 +1,11 @@ +//Example 1.14.8 page 1.47
+//To find cutoff wavelength..
+
+clc;
+clear;
+ n1= 1.48; //RI of core..
+ a= 4.5; //core radius in um..
+del= 0.0025; //Relative RI difference..
+V= 2.405; //For step index fibre..
+lamda= (2*%pi*a*n1*sqrt(2*del))/V; //cutoff wavelength..
+printf('The cutoff wavelength is %.2f um ',lamda);
diff --git a/1619/CH1/EX1.14.9/Example1_14_9.sce b/1619/CH1/EX1.14.9/Example1_14_9.sce new file mode 100755 index 000000000..9b1f745a4 --- /dev/null +++ b/1619/CH1/EX1.14.9/Example1_14_9.sce @@ -0,0 +1,15 @@ +//Example 1.14.9
+//To find normalised frequency and the number of modes for the fibre..
+
+clc;
+clear;
+
+lamda= 0.82*10^-6; //wavelength ofoperation.
+a= 2.5*10^-6; //Radius of core..
+n1= 1.48; //RI of core..
+n2= 1.46; //RI of cladding
+NA= sqrt(n1^2-n2^2); //Numerical Aperture..
+V= 2*%pi*a*NA/lamda; //Normalisd frequency..
+printf('The normalised frequency is %.3f',V);
+M= V^2/2; //The number of modes..
+printf("\n\nThe number of modes in the fibre are %.2f",M);
diff --git a/1619/CH1/EX1.15.1/Example1_15_1.sce b/1619/CH1/EX1.15.1/Example1_15_1.sce new file mode 100755 index 000000000..34b9fbab7 --- /dev/null +++ b/1619/CH1/EX1.15.1/Example1_15_1.sce @@ -0,0 +1,13 @@ +//Example 1.15.1 page 1.56..
+// Maximum core diameter..
+
+clc;
+clear;
+n1= 1.48; //RI of core..
+del= 0.015; //relative RI differencr..
+lamda= 0.85; //wavelength of operation..
+V= 2.4; // for single mode of operation..
+
+a= V*lamda/(2*%pi*n1*sqrt(2*del)); //radius of core..
+printf('The raduis of core is %.2f um',a);
+printf('\n\nThe maximum possible core diameter is %.2f um',2*a);
diff --git a/1619/CH1/EX1.15.2/Example1_15_2.sce b/1619/CH1/EX1.15.2/Example1_15_2.sce new file mode 100755 index 000000000..10eae7768 --- /dev/null +++ b/1619/CH1/EX1.15.2/Example1_15_2.sce @@ -0,0 +1,13 @@ +//Example 1.15.2
+// to find maximum core diameter for single mode..
+
+clc;
+clear;
+
+n1= 1.5; //RI of core..
+del= 0.01; //Relative RI difference...
+lamda= 1.3; //Wavelength of operation...
+V= 2.4*sqrt(2); // Maximum value of V for GRIN...
+a= V*lamda/(2*%pi*n1*sqrt(2*del)); //radius of core..
+printf('The radius of core is %.2f um',a);
+printf('\n\nThe maximum possible core diameter is %.2f um',2*a);
diff --git a/1619/CH1/EX1.15.3/Example1_15_3.sce b/1619/CH1/EX1.15.3/Example1_15_3.sce new file mode 100755 index 000000000..9817570ca --- /dev/null +++ b/1619/CH1/EX1.15.3/Example1_15_3.sce @@ -0,0 +1,12 @@ +//Example 1.15.3
+//To find the cutoff wavelength..
+
+clc;
+clear;
+
+n1= 1.46; //RI of core..
+a = 4.5; //radius of core in um..
+del= 0.0025; //relative RI difference..
+V= 2.405; // Normalisd frequency for single mode..
+lamda= 2*%pi*a*n1*sqrt(2*del)/V; //cutoff wavelength...
+printf('The cut off wavelength for the given fibre is %.3f um',lamda);
diff --git a/1619/CH1/EX1.7.1/Example1_7_1.sce b/1619/CH1/EX1.7.1/Example1_7_1.sce new file mode 100755 index 000000000..d6d4a1294 --- /dev/null +++ b/1619/CH1/EX1.7.1/Example1_7_1.sce @@ -0,0 +1,13 @@ +// Example 1.7.1 page 1.14
+//To calculate the angel of refraction if the angle of incidence is 30
+
+clc;
+clear;
+n1= 1.5; // for glass
+n2= 1.33; // for water
+phi1= (%pi/6); // phi1 is the angel of incidence
+// According to Snell's law...
+// n1*sin(phi1)= n2*sin(phi2);
+sinphi2= (n1/n2)*sin(phi1); // phi2 is the angle of refraction..
+phi2 = asind(sinphi2);
+printf(' The angel of refraction is %.2f degrees',phi2);
diff --git a/1619/CH1/EX1.7.2/Example1_7_2.sce b/1619/CH1/EX1.7.2/Example1_7_2.sce new file mode 100755 index 000000000..f310c5dc6 --- /dev/null +++ b/1619/CH1/EX1.7.2/Example1_7_2.sce @@ -0,0 +1,14 @@ +// Example 1.7.2 page 1.14
+// To calculate the critical angel
+
+clc;
+clear;
+
+n1= 1.50; // RI of glass..
+n2 = 1; // RI of air...
+// According to Snell's law...
+// n1*sin(phi1)= n2*sin(phi2);
+
+// From definition of critical angel phi2 = 90 degrees and phi1 will be critical angel
+phiC=asind((n2/n1)*sin(%pi/2));
+printf('The Critical angel is %.2f degrees',phiC);
diff --git a/1619/CH1/EX1.7.3/Example1_7_3.sce b/1619/CH1/EX1.7.3/Example1_7_3.sce new file mode 100755 index 000000000..ff6686f17 --- /dev/null +++ b/1619/CH1/EX1.7.3/Example1_7_3.sce @@ -0,0 +1,21 @@ +// Example 1.7.3 page 1.15
+// To find RI of glass
+// To find the critical angle for glass...
+
+clc;
+clear;
+phi1 = 33 // Angle of incidence..
+phi2 = 90 //Angle of refraction..
+// According to Snell's law...
+// n1*sin(phi1)= n2*sin(phi2);
+//a = sin(phi1*%pi/(180));
+// Assume n1 is the RI of glass and n2 is RI of air
+n2= 1;
+n1 = sind(90)/sind(33);
+printf('The Refractive Index is %.2f',n1);
+
+// To calculate thre critical angle...
+n1 = 1.836; // From above rounded off to 3 decimal points...
+phiC = asind((n2/n1)*sind(90));
+phiC=asind(0.54);
+printf('\n\nThe Critical angel is %.2f degrees',phiC);
diff --git a/1619/CH1/EX1.7.4/Example1_7_4.sce b/1619/CH1/EX1.7.4/Example1_7_4.sce new file mode 100755 index 000000000..1b8c67256 --- /dev/null +++ b/1619/CH1/EX1.7.4/Example1_7_4.sce @@ -0,0 +1,12 @@ +// Example 1.7.4 page 1.15
+// To find the angle of refraction..
+
+clc;
+clear;
+n1= 1.5 // TheRi of medium 1
+n2= 1.36 // the RI of medium 2
+phi1= 30; // The angle of incidence
+// According to Snell's law...
+// n1*sin(phi1)= n2*sin(phi2);
+phi2 = asind((n1/n2)*sind(phi1));
+printf('The angel of refraction is %.2f degrees from normal',phi2);
diff --git a/1619/CH1/EX1.7.5/Example1_7_5.sce b/1619/CH1/EX1.7.5/Example1_7_5.sce new file mode 100755 index 000000000..1d3938081 --- /dev/null +++ b/1619/CH1/EX1.7.5/Example1_7_5.sce @@ -0,0 +1,15 @@ +// Example 1.7.5 page 1.16
+// Will total internal reflection take place?
+
+clc;
+clear;
+
+n1 = 3.6; // RI of GaAs..
+n2 = 3.4; // RI of AlGaAs..
+phi1 = 80; // Angle of Incidence..
+// According to Snell's law...
+// n1*sin(phi1)= n2*sin(phi2);
+//At critical angle phi2 = 90...
+phiC = asind((n2/n1)*sind(90));
+printf('The Critical angel is %.2f degrees',phiC);
+printf('\n\nFor total internal reflection to take place angle\n of incidence should be greater than the critical angle. \nFrom the calculations, we can thus conclude that Total internal reflection will take place');
diff --git a/1619/CH1/EX1.9.1/Example1_9_1.sce b/1619/CH1/EX1.9.1/Example1_9_1.sce new file mode 100755 index 000000000..c13f8bbd8 --- /dev/null +++ b/1619/CH1/EX1.9.1/Example1_9_1.sce @@ -0,0 +1,17 @@ +// Example 1.91 page 1.22
+// To calculate Numerical Aperture (NA), Acceptance angle (phiA), critical Angle (phiC)...
+
+clc;
+clear;
+
+n1= 1.5; // RI of medium 1
+n2 =1.45; // RI of medium 2
+
+del= (n1-n2)/n1;
+NA = n1*(sqrt(2*del));
+printf('The Numerical aperture is %.2f ',NA);
+phiA = asind(NA);
+printf('\n\nThe Acceptance angel is %.2f degrees',phiA);
+
+phiC = asind(n2/n1);
+printf('\n\nThe Critical angel is %.2f degrees',phiC);
diff --git a/1619/CH1/EX1.9.2/Example1_9_2.sce b/1619/CH1/EX1.9.2/Example1_9_2.sce new file mode 100755 index 000000000..3771890ad --- /dev/null +++ b/1619/CH1/EX1.9.2/Example1_9_2.sce @@ -0,0 +1,14 @@ +// Example 1.9.2 page 1.23
+// To calculate Numerical aperture and Acceptance angle...
+
+clc;
+clear;
+
+n1= 1.5 // RI of core
+n2 = 1.48 // RI of cladding..
+
+NA = sqrt((n1^2)-(n2^2));
+printf('The Numerical Aperture is %.2f',NA);
+
+phiA = asind(NA);
+printf('\n\nThe Critical angel is %.2f degrees',phiA);
diff --git a/1619/CH1/EX1.9.3/Example1_9_3.sce b/1619/CH1/EX1.9.3/Example1_9_3.sce new file mode 100755 index 000000000..9688ade5f --- /dev/null +++ b/1619/CH1/EX1.9.3/Example1_9_3.sce @@ -0,0 +1,16 @@ +//Example 1.9.3 page 1.23
+// To calculate RI of core and cladding..
+
+clc;
+clear;
+
+NA = 0.35; //Numerical Aperture
+del = 0.01;
+//NA= n1*(sqrt(2*del) n1 is RI of core
+n1 = 0.35/(sqrt(2*del));
+printf('The RI of core is %.4f',n1);
+
+// Numerical Aperture is also given by
+// NA = sqrt(n1^2 - n2^2) // n2 is RI of cladding
+n2 = sqrt((n1^2-NA^2));
+printf('\n\nThe RI of Cladding %.3f',n2);
diff --git a/1619/CH1/EX1.9.4/Example1_9_4.sce b/1619/CH1/EX1.9.4/Example1_9_4.sce new file mode 100755 index 000000000..424e32b55 --- /dev/null +++ b/1619/CH1/EX1.9.4/Example1_9_4.sce @@ -0,0 +1,16 @@ +//Example 1.9.4 page 1.24
+
+
+clc;
+clear;
+Vc = 2.01*10^8; // velocity of light in core in m/sec...
+phiC= 80; // Critical angle in degrees...
+
+// RI of Core (n1) is given by (Velocity of light in air/ velocity of light in air)...
+n1= 3*10^8/Vc;
+// From critical angle and the value of n1 we calculate n2...
+n2 = sind(phiC)*n1; // RI of cladding...
+NA = sqrt(n1^2-n2^2);
+printf('The Numerical Aperture is %.2f',NA);
+phiA = asind(NA); // Acceptance angle...
+printf('\n\nThe Acceptance angel is %.2f degrees',phiA);
diff --git a/1619/CH1/EX1.9.5/Example1_9_5.sce b/1619/CH1/EX1.9.5/Example1_9_5.sce new file mode 100755 index 000000000..970c98f39 --- /dev/null +++ b/1619/CH1/EX1.9.5/Example1_9_5.sce @@ -0,0 +1,17 @@ +// Example 1.9.5 page 1.25
+// To calculate critical angle accepatance angle and numerical aperture..
+
+clc;
+clear;
+
+n1 = 1.4; //RI of Core..
+n2 = 1.35; //RI of Cladding
+
+phiC = asind(n2/n1); //Critical angle..
+printf('The Critical angel is %.2f degrees',phiC);
+
+NA = sqrt(n1^2-n2^2); // numerical Aperture...
+printf('\n\nThe Numerical Aperture is %.2f',NA);
+
+phiA = asind(NA); // Acceptance angle...
+printf('\n\nThe Acceptance angel is %.2f degrees',phiA);
diff --git a/1619/CH1/EX1.9.6/Example1_9_6.sce b/1619/CH1/EX1.9.6/Example1_9_6.sce new file mode 100755 index 000000000..945c25204 --- /dev/null +++ b/1619/CH1/EX1.9.6/Example1_9_6.sce @@ -0,0 +1,13 @@ +//Example 1.9.6 page 1.25
+//To calculate The Numerical Aperture and maximum angle of entrance of light into air...
+
+clc;
+clear;
+n1 = 1.48; // RI of core..
+n2 = 1.46; // RI of Cladding..
+
+NA = sqrt(n1^2-n2^2); //Numerical Aperture..
+printf('The Numerical Aperture is %.3f',NA);
+
+theta = %pi*NA^2; // The entrance angle theta..
+printf('\n\nThe Entrance angel is %.3f degrees',theta);
diff --git a/1619/CH1/EX1.9.7/Example1_9_7.sce b/1619/CH1/EX1.9.7/Example1_9_7.sce new file mode 100755 index 000000000..f85e7d1ae --- /dev/null +++ b/1619/CH1/EX1.9.7/Example1_9_7.sce @@ -0,0 +1,10 @@ +//Example 1.9.7 page 1.26
+//To find the Numerical Aperture...
+
+clc;
+clear;
+
+del = 0.007; // relative refractive index difference
+n1 = 1.45; // RI of core...
+NA = n1* sqrt((2*del));
+printf('The Numerical Aperture is %.4f',NA);
diff --git a/1619/CH1/EX1.9.8/Example1_9_8.sce b/1619/CH1/EX1.9.8/Example1_9_8.sce new file mode 100755 index 000000000..9929e4a94 --- /dev/null +++ b/1619/CH1/EX1.9.8/Example1_9_8.sce @@ -0,0 +1,13 @@ +//Example 1.9.8 page 1.26
+//To finf relative RI difference..
+
+clc;
+clear;
+
+phiA = 8 // accepatance angle in degrees...
+n1 =1.52; //RI of core...
+
+NA = sind(phiA); //Numerical Aperture...
+
+del = NA^2/(2*(n1^2)); //Relative RI difference...
+printf("The relative refractive index difference is %.5f",del);
diff --git a/1619/CH1/EX1.9.9/Example1_9_9.sce b/1619/CH1/EX1.9.9/Example1_9_9.sce new file mode 100755 index 000000000..643bb41a2 --- /dev/null +++ b/1619/CH1/EX1.9.9/Example1_9_9.sce @@ -0,0 +1,19 @@ +//Example 1.9.9 page 1.27
+// Calculate NA and solid acceptance angle. Also find critical angle...
+
+clc;
+clear;
+
+del = 0.01; // relative RI difference..
+n1 = 1.48; // RI of core...
+
+NA = n1*(sqrt(2*del)); //Numerical Aperture..
+printf('The Numerical Aperture is %.3f',NA);
+
+theta = %pi*NA^2; //Solid Acceptance angle...
+printf('\n\nThe Solid Acceptance angel is %.4f degrees',theta);
+
+n2 = (1-del)*n1;
+phiC = asind(n2/n1); //Critical Angle...
+printf('\n\nThe Critical angel is %.2f degrees',phiC);
+printf("\n\nCritical angle wrong due to rounding off errors in trignometric functions..\n Actual value is 90.98 in book.");
|