From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2216/CH2/EX2.2/ex_2_2.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 2216/CH2/EX2.2/ex_2_2.sce (limited to '2216/CH2/EX2.2/ex_2_2.sce') 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 -- cgit