summaryrefslogtreecommitdiff
path: root/1952/CH5/EX5.4/Ex5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1952/CH5/EX5.4/Ex5_4.sce')
-rwxr-xr-x1952/CH5/EX5.4/Ex5_4.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1952/CH5/EX5.4/Ex5_4.sce b/1952/CH5/EX5.4/Ex5_4.sce
new file mode 100755
index 000000000..fa69fcdfc
--- /dev/null
+++ b/1952/CH5/EX5.4/Ex5_4.sce
@@ -0,0 +1,8 @@
+// chapter 5 , Example5 2 , pg 150
+a=4.049 //lattice constant(in Angstrom)
+h=2
+k=2
+l=0 //since (h k l)=(2 2 0) miller indices
+d=a/sqrt(h^2+k^2+l^2) //spacing
+printf("spacing of (2 2 0) planes=")
+printf("d=%.3f Angstrom",d)