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