summaryrefslogtreecommitdiff
path: root/539/CH12/EX12.3/Example_12_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /539/CH12/EX12.3/Example_12_3.sce
downloadScilab-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-x539/CH12/EX12.3/Example_12_3.sce25
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