summaryrefslogtreecommitdiff
path: root/3768/CH12/EX12.7/Ex12_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH12/EX12.7/Ex12_7.sce')
-rw-r--r--3768/CH12/EX12.7/Ex12_7.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3768/CH12/EX12.7/Ex12_7.sce b/3768/CH12/EX12.7/Ex12_7.sce
new file mode 100644
index 000000000..d2c642cf1
--- /dev/null
+++ b/3768/CH12/EX12.7/Ex12_7.sce
@@ -0,0 +1,12 @@
+//Example number 12.7, Page number 265
+
+clc;clear;
+close;
+
+//Variable declaration
+n1=1.5; //Core refractive index
+n2=1.3; //Cladding refractive index
+//Calculation
+delta=(n1-n2)/n1; //fractional index change
+//Result
+printf("fractional index change is %.3f delta",delta)