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 --- 2708/CH2/EX2.8/ex_2_8.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2708/CH2/EX2.8/ex_2_8.sce (limited to '2708/CH2/EX2.8/ex_2_8.sce') diff --git a/2708/CH2/EX2.8/ex_2_8.sce b/2708/CH2/EX2.8/ex_2_8.sce new file mode 100755 index 000000000..60ac942c6 --- /dev/null +++ b/2708/CH2/EX2.8/ex_2_8.sce @@ -0,0 +1,26 @@ +//Example 2.8 //angular separtion +clc; +clear; +//part a +c=1/5000;//grating element +w1=5890D-8;// in first case first wavelength used in cm +n=2;//order of spectrum +theta=asin((n*w1)/c);//angular separton in radian +theta=theta*180/%pi;//to convert in degree +disp(theta,"angular width in degree") +//part b +w2=5896D-8;// in second case second wavelength used in cm +n=2;//order of spectrum +theta1=asin((n*w2)/c);//angular separton in radian +theta1=theta1*180/%pi;//to convert in degree +disp(theta1,"angular width in degree") +a=theta1-theta;//angular separation in degree +disp(a,"angular separation in degree") +//part c +w=5893D-8;// mid wavelength +dw=w2-w1;// change in wavelength +n=2;//order of spectrum +N=w/(dw*n);//no. of lines in grating +N=floor(N);//N should be integer +disp(N,"no. of lines in grating") + -- cgit