summaryrefslogtreecommitdiff
path: root/1871/CH5/EX5.5/Ch05Ex5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1871/CH5/EX5.5/Ch05Ex5.sce')
-rwxr-xr-x1871/CH5/EX5.5/Ch05Ex5.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1871/CH5/EX5.5/Ch05Ex5.sce b/1871/CH5/EX5.5/Ch05Ex5.sce
new file mode 100755
index 000000000..e54cec29f
--- /dev/null
+++ b/1871/CH5/EX5.5/Ch05Ex5.sce
@@ -0,0 +1,10 @@
+// Scilab code Ex5.5: Pg:217 (2008)
+clc;clear;
+Lambda = 5e-05; // Wavelength of spectral line, cm
+n = 2; // Second order principal maxima
+theta = 30; // Direction of principal maxima, degree
+aplusb_inv = sind(theta)/(n*Lambda); // Number of lines in one cm of grating where a is the width of slit and b is the width of opaque region in a grating, cm
+printf("\nThe number of lines on the grating surface = %d ", ceil(aplusb_inv));
+
+// Result
+// The number of lines on the grating surface = 5000 \ No newline at end of file