summaryrefslogtreecommitdiff
path: root/2411/CH8/EX8.5/Ex8_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/CH8/EX8.5/Ex8_5.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2411/CH8/EX8.5/Ex8_5.sce')
-rwxr-xr-x2411/CH8/EX8.5/Ex8_5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2411/CH8/EX8.5/Ex8_5.sce b/2411/CH8/EX8.5/Ex8_5.sce
new file mode 100755
index 000000000..80d3cdccf
--- /dev/null
+++ b/2411/CH8/EX8.5/Ex8_5.sce
@@ -0,0 +1,13 @@
+// Scilab Code Ex8.5: Page-398 (2008)
+clc; clear;
+n1 = 1.51; // Refractive index of the core material
+n2 = 1.47; // Refractive index of the cladding
+NA = sqrt(n1^2-n2^2); // Numerical aperture of the optical fibre
+n0 = 1; // Refractive index of air
+theta_a = asin(NA/n0); // Acceptance angle of the optical fibre, rad
+printf("\nThe numerical aperture of the optical fibre = %6.4f", NA);
+printf("\nThe acceptance angle of the optical fibre = %4.2f degrees", theta_a*180/3.14);
+
+// Result
+// The numerical aperture of the optical fibre = 0.3453
+// The acceptance angle of the optical fibre = 20.21 degrees