diff options
Diffstat (limited to '2411/CH3/EX3.d.308/Ex3d_8.sce')
-rwxr-xr-x | 2411/CH3/EX3.d.308/Ex3d_8.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/2411/CH3/EX3.d.308/Ex3d_8.sce b/2411/CH3/EX3.d.308/Ex3d_8.sce new file mode 100755 index 000000000..d92aa377b --- /dev/null +++ b/2411/CH3/EX3.d.308/Ex3d_8.sce @@ -0,0 +1,10 @@ +// Scilab Code Ex3d.8: Page-208 (2008)
+clc; clear;
+lambda = 5.5e-007; // Wavelength of light, m
+a_plus_b = 1.5e-006; // Grating element, m
+theta = 90; // Maximum angle of diffraction, degree
+n = a_plus_b*sind(theta)/lambda; // Order of diffraction
+printf("\nIn this diffraction grating only %dnd order will be visible while %drd and higher orders are not possible.", n, n+1);
+
+// Result
+// In this diffraction grating only 2nd order will be visible while 3rd and higher orders are not possible.
\ No newline at end of file |