summaryrefslogtreecommitdiff
path: root/1271/CH5/EX5.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH5/EX5.9
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 '1271/CH5/EX5.9')
-rwxr-xr-x1271/CH5/EX5.9/9.txt2
-rwxr-xr-x1271/CH5/EX5.9/example5_9.sce12
2 files changed, 14 insertions, 0 deletions
diff --git a/1271/CH5/EX5.9/9.txt b/1271/CH5/EX5.9/9.txt
new file mode 100755
index 000000000..a7431e6cb
--- /dev/null
+++ b/1271/CH5/EX5.9/9.txt
@@ -0,0 +1,2 @@
+ Numerical aperture = 0.120768.
+ Number of modes = 159.
diff --git a/1271/CH5/EX5.9/example5_9.sce b/1271/CH5/EX5.9/example5_9.sce
new file mode 100755
index 000000000..2bddb57ff
--- /dev/null
+++ b/1271/CH5/EX5.9/example5_9.sce
@@ -0,0 +1,12 @@
+clc
+// Given that
+lambda = 0.85e-6 //wavelength of light in meter
+mu1 = 1.461 // refractive index for core
+mu2 = 1.456 // refractive index for clad
+d = 4e-5 // diameter of core in meter
+// Sample Problem 9 on page no. 5.19
+printf("\n # PROBLEM 9 # \n")
+NA = sqrt(mu1^2 - mu2^2)
+Mm = 0.5 * ((%pi * d * NA) / lambda)^2
+printf("\n Standard formula used \n NA = sqrt(mu1^2 - mu2^2). \n Mm = 0.5 * ((pi * d * NA) / lambda)^2. \n ")
+printf("\n Numerical aperture = %f.\n Number of modes = %d. ",NA,Mm)