summaryrefslogtreecommitdiff
path: root/3669/CH11/EX11.5/5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3669/CH11/EX11.5/5.sce')
-rw-r--r--3669/CH11/EX11.5/5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3669/CH11/EX11.5/5.sce b/3669/CH11/EX11.5/5.sce
new file mode 100644
index 000000000..f720d8679
--- /dev/null
+++ b/3669/CH11/EX11.5/5.sce
@@ -0,0 +1,13 @@
+
+//Variable declaration
+NA=0.39; //numerical aperture
+n1_n2=0.05; //difference in refractive indices
+
+//Calculation
+x=NA**2/n1_n2;
+n2=(x-n1_n2)/2; //refractive index of cladding
+n1=n2+n1_n2; //refractive index of core
+
+//Result
+printf('refractive index of core is %0.3f \n',n1)
+printf('refractive index of cladding is %0.3f \n',n2) \ No newline at end of file