diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH4/EX4.7/Ch04Ex7.sci | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
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 |