summaryrefslogtreecommitdiff
path: root/2309/CH5/EX5.a.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2309/CH5/EX5.a.13
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 '2309/CH5/EX5.a.13')
-rwxr-xr-x2309/CH5/EX5.a.13/A_Ex5_13.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2309/CH5/EX5.a.13/A_Ex5_13.sce b/2309/CH5/EX5.a.13/A_Ex5_13.sce
new file mode 100755
index 000000000..04fe09817
--- /dev/null
+++ b/2309/CH5/EX5.a.13/A_Ex5_13.sce
@@ -0,0 +1,21 @@
+// Chapter 5 Additional Example 13
+//==============================================================================
+clc;
+clear;
+
+h1 = 1;
+h0 = 0;
+k0 = 0;
+l0 = 0;
+l1 = 1;
+// calculations
+
+// we know that dhkl = a/sqrt( h^2 + k^2 + l^2)
+// let sqrt( h^2 + k^2 + l^2) = p
+p101 = sqrt( h1^2 + k0^2 + l1^2);
+p100 = sqrt( h1^2 + k0^2 + l0^2);
+p001 = sqrt( h0^2 + k0^2 + l1^2);
+
+// output
+mprintf('d101 : d100 : d001 :: a/%3.4f : a/%d : a/%d ',p101,p100,p001);
+//==============================================================================