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 /1847/CH3/EX3.14/Ch03Ex14.sce | |
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 '1847/CH3/EX3.14/Ch03Ex14.sce')
-rwxr-xr-x | 1847/CH3/EX3.14/Ch03Ex14.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1847/CH3/EX3.14/Ch03Ex14.sce b/1847/CH3/EX3.14/Ch03Ex14.sce new file mode 100755 index 000000000..09c9e7803 --- /dev/null +++ b/1847/CH3/EX3.14/Ch03Ex14.sce @@ -0,0 +1,12 @@ +// Scilab Code Ex3.14:: Page-3.26 (2009)
+clc; clear;
+a = 0.025; // Slit width, cm
+n = 2; // Order of diffraction
+f = 400; // Focal length of the lens, cm
+x = 2.1; // Position of central maxima, cm
+// As theta = n*lambda/a and theta = x/f, solving for lambda
+lambda = x*a/(n*f); // Wavelength of light used, cm
+printf("\nThe wavelength of light used = %4d angstrom", lambda/1e-008);
+
+// Result
+// The wavelength of light used = 6562 angstrom
|