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/CH6/EX6.11/Ch06Ex11.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/CH6/EX6.11/Ch06Ex11.sci')
-rwxr-xr-x | 1535/CH6/EX6.11/Ch06Ex11.sci | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1535/CH6/EX6.11/Ch06Ex11.sci b/1535/CH6/EX6.11/Ch06Ex11.sci new file mode 100755 index 000000000..62f8693ac --- /dev/null +++ b/1535/CH6/EX6.11/Ch06Ex11.sci @@ -0,0 +1,12 @@ +// Scilab Code Ex6.11 : Maximum order of diffraction: Page-138 (2010)
+d = 0.31e-009; // Interplanar spacing, m
+n = 1; // First Order of diffraction
+theta = 9.25; // Glancing angle at which Bragg's reflection occurs, degrees
+// From Bragg's Law, n*lambda = 2*d*sind(theta), solving for lambda
+lambda = 2*d*sind(theta)/n; // Wavelength of X-rays, m (Bragg's Law)
+theta_max = 90; // Maximum possible angle at which reflection can occur, degrees
+n = 2*d*sind(theta_max)/lambda; // Maximum possible order of diffraction
+printf("\nThe Maximum possible order of diffraction = %1d",n);
+
+// Result
+// The Maximum possible order of diffraction = 6
\ No newline at end of file |