summaryrefslogtreecommitdiff
path: root/1271/CH13/EX13.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH13/EX13.14
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1271/CH13/EX13.14')
-rwxr-xr-x1271/CH13/EX13.14/14.txt2
-rwxr-xr-x1271/CH13/EX13.14/example13_14.sce14
2 files changed, 16 insertions, 0 deletions
diff --git a/1271/CH13/EX13.14/14.txt b/1271/CH13/EX13.14/14.txt
new file mode 100755
index 000000000..e1d0e71a7
--- /dev/null
+++ b/1271/CH13/EX13.14/14.txt
@@ -0,0 +1,2 @@
+ Wavelength of x-ray is 0.785301 angstrom.
+ Glancing angle for second order diffraction is 18.232211 degree.
diff --git a/1271/CH13/EX13.14/example13_14.sce b/1271/CH13/EX13.14/example13_14.sce
new file mode 100755
index 000000000..ef966441d
--- /dev/null
+++ b/1271/CH13/EX13.14/example13_14.sce
@@ -0,0 +1,14 @@
+clc
+// Given that
+d = 2.51 // the space between adjacent plane in angstrom
+theta = 9 // glancing angle in degree
+// Sample Problem 14 on page no. 13.29
+printf("\n # PROBLEM 14 # \n")
+printf(" Standard formula used \n")
+printf(" n*lambda = 2 * d * sin(theta) \n")
+n = 1 // for n=1
+lambda = 2 * d * sind(theta) / n
+n = 2 // for n=2
+theta = asind(lambda / d)
+printf("\n Wavelength of x-ray is %f angstrom.\n Glancing angle for second order diffraction is %f degree.",lambda,theta)
+