diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH6/EX6.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1535/CH6/EX6.1')
-rwxr-xr-x | 1535/CH6/EX6.1/Ch06Ex1.sci | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1535/CH6/EX6.1/Ch06Ex1.sci b/1535/CH6/EX6.1/Ch06Ex1.sci new file mode 100755 index 000000000..6a3047212 --- /dev/null +++ b/1535/CH6/EX6.1/Ch06Ex1.sci @@ -0,0 +1,13 @@ +// Scilab Code Ex6.1 : Lattice parameter of NaCl crystal : Page-134 (2010)
+M = 23+35.5; // Molecular weight of NaCl, kg per k-mole
+d = 2.18e+03; // Density of rock salt, kg per metre cube
+n = 4; // No. of atoms per unit cell for an fcc lattice of NaCl crystal
+N = 6.023D+26; // Avogadro's No., atoms/k-mol
+// Volume of the unit cell is given by
+// a^3 = M*n/(N*d)
+// Solving for a
+a = (n*M/(d*N))^(1/3); // Lattice constant of unit cell of NaCl
+printf("\nLattice parameter for the NaCl crystal = %4.2f angstrom", a/1e-010);
+
+// Result
+// Lattice parameter for the NaCl crystal = 5.63 angstrom
\ No newline at end of file |