summaryrefslogtreecommitdiff
path: root/3526/CH3/EX3.12/EX3_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '3526/CH3/EX3.12/EX3_12.sce')
-rw-r--r--3526/CH3/EX3.12/EX3_12.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3526/CH3/EX3.12/EX3_12.sce b/3526/CH3/EX3.12/EX3_12.sce
new file mode 100644
index 000000000..c32d221a1
--- /dev/null
+++ b/3526/CH3/EX3.12/EX3_12.sce
@@ -0,0 +1,14 @@
+//page 72
+clc;funcprot(0);//EXAMPLE 3.12
+// Initialisation of Variables
+r1=0.066;.......//Radius of Mg+2 from Appendix B in nm
+r2=0.132;.......//Radius of O-2 from Appendix B in nm
+Am1=24.312;.......//Atomic masses of Mg+2 in g/mol
+Am2=16;.......//Atomic masses of O-2 in g/mol
+Na=6.02*10^23;......//Avogadro’s number
+//CALCULATIONS
+a0=2*r1+2*r2;...........//Lattice constant for MgO in nm
+rho=((4*Am1)+(4*16))/((a0*10^-8)*Na);.....//Density of MgO in g/cm^3
+disp(a0*10^-8,"Lattice constant for MgO in cm:")
+disp(rho,"Density of MgO in g/cm^3:")
+//Answer given in the book is wrong \ No newline at end of file