summaryrefslogtreecommitdiff
path: root/3768/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH12/EX12.1/Ex12_1.sce')
-rw-r--r--3768/CH12/EX12.1/Ex12_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3768/CH12/EX12.1/Ex12_1.sce b/3768/CH12/EX12.1/Ex12_1.sce
new file mode 100644
index 000000000..66a17932d
--- /dev/null
+++ b/3768/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,12 @@
+//Example number 12.1, Page number 263
+
+clc;clear;
+close;
+
+//Variable declaration
+NA=0.39; //numerical aperture
+delta=0.05; //refractive index of cladding
+//Calculation
+n1=NA/sqrt(2*delta); //refractive index of core
+//Result
+printf("refractive index of core is %.3f",n1)