summaryrefslogtreecommitdiff
path: root/3828/CH10/EX10.4/Ex10_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3828/CH10/EX10.4/Ex10_4.sce')
-rw-r--r--3828/CH10/EX10.4/Ex10_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3828/CH10/EX10.4/Ex10_4.sce b/3828/CH10/EX10.4/Ex10_4.sce
new file mode 100644
index 000000000..aa756a6eb
--- /dev/null
+++ b/3828/CH10/EX10.4/Ex10_4.sce
@@ -0,0 +1,15 @@
+//Chapter 10 : Crystallography and Crystal Imperfections
+
+clear;
+
+//Variable declaration
+M=58.45 //formula weigth
+rho=2.17*10**3 //density of material
+n=4 //No. of atoms/cell
+No=6*10**26 //Avagadro's No.
+
+//Calculations
+a=((n*M)/(No*rho))**(1/3)/10**-10
+
+//Result
+mprintf("Lattice constant a= %.3f*10**-10 m",a)