diff options
Diffstat (limited to '1535/CH4/EX4.7/Ch04Ex7.sci')
-rwxr-xr-x | 1535/CH4/EX4.7/Ch04Ex7.sci | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1535/CH4/EX4.7/Ch04Ex7.sci b/1535/CH4/EX4.7/Ch04Ex7.sci new file mode 100755 index 000000000..e44cee94a --- /dev/null +++ b/1535/CH4/EX4.7/Ch04Ex7.sci @@ -0,0 +1,11 @@ +// Scilab Code Ex4.7 : Page-93 (2010)
+w = 5; // Width of the grating, cm
+N = 320; // Number of lines per cm on grating, per cm
+N0 = w*N; // Total number of lines on the grating
+lambda = 640; // Wavelength of light, nm
+n = 2; // Order of diffraction
+d_lambda = lambda/(n*N0); // Separation between wavelengths which the gratign can just resolve, nm
+printf("\nThe separation between wavelengths which the grating can just resolve = %3.1f nm", d_lambda);
+
+// Result
+// The separation between wavelengths which the grating can just resolve = 0.2 nm
\ No newline at end of file |