summaryrefslogtreecommitdiff
path: root/2216/CH2/EX2.2/ex_2_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2216/CH2/EX2.2/ex_2_2.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2216/CH2/EX2.2/ex_2_2.sce')
-rwxr-xr-x2216/CH2/EX2.2/ex_2_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2216/CH2/EX2.2/ex_2_2.sce b/2216/CH2/EX2.2/ex_2_2.sce
new file mode 100755
index 000000000..c92ca8229
--- /dev/null
+++ b/2216/CH2/EX2.2/ex_2_2.sce
@@ -0,0 +1,17 @@
+//Example 2.2 // minimum and maximum number of reflections
+clc;
+clear;
+close;
+format('v',5)
+n1=1.5;//core refrative index
+n2=1.48;//claddin refractive index
+a=100/2;//radius in micro meter
+na=1;//air refrative index
+NA=sqrt(n1^2-n2^2);//numerical aperture
+am=(asind(NA));//
+tm=asind(NA/n1);//
+tc=asind(n2/n1);//
+L=((a*10^-6)/(tand(tm)));//length in meter
+x=(1/(2*L));//maximum number of reflections per meter
+disp("all other rays will suffer reflections between these two extremes of "+string(0)+" and "+string(x)+" m^-1")
+//answer is wrong in the textbook