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 /2309/CH5/EX5.a.3 | |
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 '2309/CH5/EX5.a.3')
-rwxr-xr-x | 2309/CH5/EX5.a.3/A_Ex5_3.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2309/CH5/EX5.a.3/A_Ex5_3.sce b/2309/CH5/EX5.a.3/A_Ex5_3.sce new file mode 100755 index 000000000..a3aebbff0 --- /dev/null +++ b/2309/CH5/EX5.a.3/A_Ex5_3.sce @@ -0,0 +1,23 @@ +// Chapter 5 additional Example 3
+//==============================================================================
+clc;
+clear;
+
+// input data
+// NaCl has FCC structure
+
+ANa = 23; // atomic wt of sodiim
+ACl = 35.45 // atomic wt of chlorine
+N = 6.023*10^26; // Avagadros number in atoms/kilomole
+n = 4 // No. of atoms per unit cell for FCC
+p = 2180; // density in kg/m^-3
+
+// Calculations
+
+// p = (n*A)/(N*a^3); density
+A = ANa+ACl; // atomic wt of NaCl
+a = ((n*A)/(N*p))^(1/3); // lattice constant
+r = a/2 // Distance b/w two adjacent atoms
+//Output
+mprintf('Distance between two adjacent atoms is r = %3.2e m',r);
+//==============================================================================
|