summaryrefslogtreecommitdiff
path: root/2912/CH3/EX3.15/Ex3_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '2912/CH3/EX3.15/Ex3_15.sce')
-rwxr-xr-x2912/CH3/EX3.15/Ex3_15.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2912/CH3/EX3.15/Ex3_15.sce b/2912/CH3/EX3.15/Ex3_15.sce
new file mode 100755
index 000000000..29aae355a
--- /dev/null
+++ b/2912/CH3/EX3.15/Ex3_15.sce
@@ -0,0 +1,14 @@
+//chapter 3
+//example 3.15
+//calculate density
+//page 63
+clear;
+clc;
+//given
+h=1,k=0,l=0; // miller indices
+a=2.5; // in Angstrom (lattice constant)
+//calculate
+a=a*1E-10; //hence a is in Angstrom
+d=a/sqrt(h^2+k^2+l^2); // calculation for interplanar spacing
+p=d/a^3;
+printf('\nThe density is\tp=%1.1E lattice points/m^2',p);