summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.30/Ch03Ex30.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH3/EX3.30/Ch03Ex30.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 '1847/CH3/EX3.30/Ch03Ex30.sce')
-rwxr-xr-x1847/CH3/EX3.30/Ch03Ex30.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1847/CH3/EX3.30/Ch03Ex30.sce b/1847/CH3/EX3.30/Ch03Ex30.sce
new file mode 100755
index 000000000..5124f37f8
--- /dev/null
+++ b/1847/CH3/EX3.30/Ch03Ex30.sce
@@ -0,0 +1,15 @@
+// Scilab Code Ex3.30:: Page-3.49 (2009)
+clc; clear;
+lambda1 = 5890e-008; // Wavelength of D1 line of Na, cm
+lambda2 = 5896e-008; // Wavelength of D2 line of Na, cm
+d_lambda = lambda2-lambda1; // Linear separation of two lines just seen as separate, cm
+P = 500; // Number of lines per cm on grating, lines/cm
+n = 2; // Order of diffraction
+// As resolving power of grating, lambda/d_lambda = n*N, solving for N
+N = lambda1/(d_lambda*n); // No. of lines required per cm on grating, lines/cm
+w = N/P; // Least width of grating, cm
+
+printf("\nThe least width of plane transmission grating = %5.3f cm", w);
+
+// Result
+// The least width of plane transmission grating = 0.982 cm