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 /2411/CH7/EX7.3/Ex7_3.sce | |
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 '2411/CH7/EX7.3/Ex7_3.sce')
-rwxr-xr-x | 2411/CH7/EX7.3/Ex7_3.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2411/CH7/EX7.3/Ex7_3.sce b/2411/CH7/EX7.3/Ex7_3.sce new file mode 100755 index 000000000..0f0f679cc --- /dev/null +++ b/2411/CH7/EX7.3/Ex7_3.sce @@ -0,0 +1,13 @@ +// Scilab Code Ex7.3: Page-377 (2008)
+clc; clear;
+M = 58.46; // Gram atomic mass of NaCl, g/mole
+N = 6.023e+023; // Avogadro's number
+rho = 2.17; // Density of NaCl, g/cc
+m = M/N; // Mass of each NaCl molecule, g
+n = rho/m; // Number of NaCl molecules per unit volume, molecules/cc
+N = 2*n; // Number of atoms per unit volume, atoms/cc
+a = (1/N)^(1/3); // Distance between two adjacent atoms in the NaCl, cm
+printf("\nThe distance between two adjacent atoms in the NaCl = %4.2f angstrom", a/1e-008);
+
+// Result
+// The distance between two adjacent atoms in the NaCl = 2.82 angstrom
\ No newline at end of file |