summaryrefslogtreecommitdiff
path: root/1397/CH8/EX8.2/8_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1397/CH8/EX8.2/8_2.sce')
-rwxr-xr-x1397/CH8/EX8.2/8_2.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/1397/CH8/EX8.2/8_2.sce b/1397/CH8/EX8.2/8_2.sce
new file mode 100755
index 000000000..ab17fec5e
--- /dev/null
+++ b/1397/CH8/EX8.2/8_2.sce
@@ -0,0 +1,7 @@
+//clc();
+clear;
+//To calculate the fractional index change
+n1=1.563; //core refractive index
+n2=1.498; //cladding refractive index
+delta=(n1-n2)/n1;
+printf("fractional index change is %f",delta);