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 /539/CH12/EX12.3/Example_12_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 '539/CH12/EX12.3/Example_12_3.sce')
-rwxr-xr-x | 539/CH12/EX12.3/Example_12_3.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/539/CH12/EX12.3/Example_12_3.sce b/539/CH12/EX12.3/Example_12_3.sce new file mode 100755 index 000000000..6b2c383a3 --- /dev/null +++ b/539/CH12/EX12.3/Example_12_3.sce @@ -0,0 +1,25 @@ +//Theoretical Density Determination for NaCl
+
+clear;
+clc;
+
+printf("\tExample12.3\n");
+
+A_Na=22.99; // in g/mol
+A_Cl=35.45; //in g/mol
+
+r_Na=0.102*10^-7; //in cm Radius of Na+ ion
+r_Cl=0.181*10^-7; //in cm Radius of Cl- ion
+
+a=2*(r_Na+r_Cl);
+V=a^3;
+
+n=4; //For FCC, no. of atoms are 4 per crystal
+
+Na=6.023*10^23; //Avogadro number
+
+density=n*(A_Na+A_Cl)/(V*Na);
+
+printf("\nDensity is : %0.2f g/cm^3\n",density);
+
+//End
\ No newline at end of file |