summaryrefslogtreecommitdiff
path: root/2183/CH2/EX2.2.a/EX_2_2_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '2183/CH2/EX2.2.a/EX_2_2_a.sce')
-rwxr-xr-x2183/CH2/EX2.2.a/EX_2_2_a.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2183/CH2/EX2.2.a/EX_2_2_a.sce b/2183/CH2/EX2.2.a/EX_2_2_a.sce
new file mode 100755
index 000000000..881a64b74
--- /dev/null
+++ b/2183/CH2/EX2.2.a/EX_2_2_a.sce
@@ -0,0 +1,11 @@
+// Example 2.2.a: Critical Angle
+clc;
+clear;
+close;
+n1=1.50;//Waveguide Refractive Index
+n2=1.47;//Cladding Refractive Index
+Oc=asind(n2/n1);//Critical Angle
+oc=floor(Oc);//
+x=Oc-oc;//
+disp("CRITICAL ANGLE IS "+string(oc)+" DEGREE AND "+string(round((60*(x))))+" MINUTES ")
+//answer is wrong in the textbook