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