summaryrefslogtreecommitdiff
path: root/2780/CH3/EX3.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2780/CH3/EX3.14
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 '2780/CH3/EX3.14')
-rwxr-xr-x2780/CH3/EX3.14/Ex3_14.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2780/CH3/EX3.14/Ex3_14.sce b/2780/CH3/EX3.14/Ex3_14.sce
new file mode 100755
index 000000000..e974aa3a5
--- /dev/null
+++ b/2780/CH3/EX3.14/Ex3_14.sce
@@ -0,0 +1,15 @@
+clc
+//to calculate number of lines in the grating
+//theta1=theta2=30 degree
+//sin theta1=sin theta2=1/2
+lambda1=6*10^-5
+ //wavelength in cm
+lambda2=4.5*10^-5
+//let (e+d)=E
+//formula is (e+d)*sin theta1=n*lambda1----------eq(1)
+//(e+d)*sin theta2=(n+1)*lambda2----------eq(2)
+//we get,
+n=lambda2/(lambda1-lambda2) //order of spectrum
+E=n*lambda1/sin(%pi/6)
+number=1/E
+disp("number of lines is number="+string(number)+"unitless")