summaryrefslogtreecommitdiff
path: root/1655/CH2/EX2.7.17/Example_2_7_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '1655/CH2/EX2.7.17/Example_2_7_17.sce')
-rwxr-xr-x1655/CH2/EX2.7.17/Example_2_7_17.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/1655/CH2/EX2.7.17/Example_2_7_17.sce b/1655/CH2/EX2.7.17/Example_2_7_17.sce
new file mode 100755
index 000000000..46c2a4c33
--- /dev/null
+++ b/1655/CH2/EX2.7.17/Example_2_7_17.sce
@@ -0,0 +1,32 @@
+// Example 2.7.17 page 2.35
+
+clc;
+clear;
+
+NA=0.25; //Numericla aperture
+d=45d-6; //Diameter of core
+lamda=1.2d-6; //Wavelength
+
+a=d/2; //computing radius
+v=2*3.14*a*NA/lamda; //computing normalized frequency
+Mg=v^2/4; //computing mode volume for parabollic profile
+Mg=round(Mg);
+printf("\nNormalized Frequency is %.1f.\nTotal number of guided modes are %.d.",v,Mg);
+printf("\n\nNOTE - In the question NA is given 0.22. However while solving it is taken as 0.25");
+
+// answer in the book for number of guided modes is given as 216, deviation of 1.
+
+printf("\nHence solving for NA = 0.22 also,");
+printf("\n\nWhen NA=0.22");
+
+NA=0.22; //Numericla aperture
+d=45d-6; //Diameter of core
+lamda=1.2d-6; //Wavelength
+
+a=d/2; //computing radius
+v=2*3.14*a*NA/lamda; //computing normalized frequency
+Mg=v^2/4; //computing mode volume for parabollic profile
+Mg=round(Mg);
+printf("\nNormalized Frequency is %.1f.\nTotal number of guided modes are %.d.",v,Mg);
+
+