diff options
Diffstat (limited to '2411/CH3/EX3.d.306/Ex3d_6.sce')
-rwxr-xr-x | 2411/CH3/EX3.d.306/Ex3d_6.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/2411/CH3/EX3.d.306/Ex3d_6.sce b/2411/CH3/EX3.d.306/Ex3d_6.sce new file mode 100755 index 000000000..a3e832a4f --- /dev/null +++ b/2411/CH3/EX3.d.306/Ex3d_6.sce @@ -0,0 +1,10 @@ +// Scilab Code Ex3d.6: Page-207 (2008)
+clc; clear;
+n = 2; // Order of diffraction
+lambda = 5e-005; // Wavelength of light, cm
+theta = 30; // Angle of diffraction, degree
+N = sind(theta)/(n*lambda); // Number of lines per cm of grating, lines/cm
+printf("\nThe number of lines per cm of grating = %4d per cm", ceil(N));
+
+// Result
+// The number of lines per cm of grating = 5000 per cm
\ No newline at end of file |