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.3/Ch04Ex3.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.3/Ch04Ex3.sci')
-rwxr-xr-x | 1535/CH4/EX4.3/Ch04Ex3.sci | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1535/CH4/EX4.3/Ch04Ex3.sci b/1535/CH4/EX4.3/Ch04Ex3.sci new file mode 100755 index 000000000..9d94224c7 --- /dev/null +++ b/1535/CH4/EX4.3/Ch04Ex3.sci @@ -0,0 +1,10 @@ +// Scilab Code Ex4.3 : Page-91 (2010)
+n = 2; // Order of diffraction
+lambda = 650e-009; // Wavelength of light used, m
+d = 1.2e-05; // Distance between two consecutive slits of grating, m
+// We have sin(theta) = n*N*lambda = n*lambda/d, solving for theta
+theta = asind(n*lambda/d); // Angle at which the 650 nm light produces a second order maximum, degrees
+printf("\nThe angle at which the 650 nm light produces a second order maximum = %4.2f degrees", theta);
+
+// Result
+// The angle at which the 650 nm light produces a second order maximum = 6.22 degrees
\ No newline at end of file |