summaryrefslogtreecommitdiff
path: root/3543/CH2/EX2.3/Ex2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3543/CH2/EX2.3/Ex2_3.sce')
-rw-r--r--3543/CH2/EX2.3/Ex2_3.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3543/CH2/EX2.3/Ex2_3.sce b/3543/CH2/EX2.3/Ex2_3.sce
new file mode 100644
index 000000000..ab7199895
--- /dev/null
+++ b/3543/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,24 @@
+// Example 2.3
+// Calculation of (a) critical angle (b) numerical aperature and (c) acceptance angle
+// Page no 38
+
+clc;
+clear;
+close;
+
+// Given data
+n1=1.5; // Refractive index of core
+n2=1.47; // Refractive index of cladding)
+
+// (a) Critical angle
+theatha=asind(n2/n1);
+// (b) Numerical aperature
+NA=sqrt(n1^2-n2^2);
+// (c) Acceptance angle
+theatha1=asind(NA);
+
+//Display result on command window
+printf("\n Critical angle (degrees) = %0.1f ",theatha);
+printf("\n Numerical aperature = %0.2f ",NA);
+printf("\n Acceptance angle (degrees) = %0.1f ",theatha1);
+