summaryrefslogtreecommitdiff
path: root/3768/CH12/EX12.6/Ex12_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH12/EX12.6/Ex12_6.sce')
-rw-r--r--3768/CH12/EX12.6/Ex12_6.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3768/CH12/EX12.6/Ex12_6.sce b/3768/CH12/EX12.6/Ex12_6.sce
new file mode 100644
index 000000000..06ccff104
--- /dev/null
+++ b/3768/CH12/EX12.6/Ex12_6.sce
@@ -0,0 +1,16 @@
+//Example number 12.6, Page number 265
+
+clc;clear;
+close;
+
+//Variable declaration
+n1=1.6; //Core refractive index
+n0=1.33; //refractive index of air
+n2=1.4; //Cladding refractive index
+//Calculation
+NA=sqrt(n1**2-n2**2)/n0; //numerical aperture
+theta0=asin(NA); //acceptance angle(radian)
+theta0=theta0*180/%pi; //acceptance angle(degrees)
+//Resul"
+printf("acceptance angle is %.2f degree",theta0)
+//answer in the book varies due to rounding off errors