summaryrefslogtreecommitdiff
path: root/3717/CH10/EX10.9/Ex10_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3717/CH10/EX10.9/Ex10_9.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3717/CH10/EX10.9/Ex10_9.sce')
-rw-r--r--3717/CH10/EX10.9/Ex10_9.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3717/CH10/EX10.9/Ex10_9.sce b/3717/CH10/EX10.9/Ex10_9.sce
new file mode 100644
index 000000000..687f7f065
--- /dev/null
+++ b/3717/CH10/EX10.9/Ex10_9.sce
@@ -0,0 +1,14 @@
+// Ex10_9 Page:220 (2014)
+clc;clear;
+d = 2.51e-010; // Spacing between adjacent planes, m
+theta = 9; // Glancing angle for diffraction, degree
+n = 1; // Order of diffraction
+lambda = 2*d*sind(theta)/n; // Wavelength of X-ray from Bragg's Law, m
+n = 2; // New order of diffraction
+theta = asind(2*lambda/(2*d)); // Glancing angle for second order diffraction, degree
+printf("\nThe wavelength of X-rays = %6.4f angstrom", lambda/1e-010);
+printf("\nThe glancing angle for second order diffraction = %2d degree", theta);
+
+// Result
+// The wavelength of X-rays = 0.7853 angstrom
+// The glancing angle for second order diffraction = 18 degree \ No newline at end of file