summaryrefslogtreecommitdiff
path: root/1061/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1061/CH2/EX2.5/Ex2_5.sce')
-rwxr-xr-x1061/CH2/EX2.5/Ex2_5.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1061/CH2/EX2.5/Ex2_5.sce b/1061/CH2/EX2.5/Ex2_5.sce
new file mode 100755
index 000000000..55bfaa20b
--- /dev/null
+++ b/1061/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,10 @@
+//Ex:2.5
+clc;
+clear;
+close;
+dl=0.012;
+n_a=0.22;// numerical aperture
+n1=n_a/(sqrt(2*dl));// core refractive ondex
+n2=n1-(dl*n1);// cladding refractive index
+printf("core refractive ondex = %f",n1);
+printf("\n cladding refractive index = %f",n2); \ No newline at end of file