summaryrefslogtreecommitdiff
path: root/3020/CH13/EX13.3/ex13_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3020/CH13/EX13.3/ex13_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 '3020/CH13/EX13.3/ex13_3.sce')
-rwxr-xr-x3020/CH13/EX13.3/ex13_3.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3020/CH13/EX13.3/ex13_3.sce b/3020/CH13/EX13.3/ex13_3.sce
new file mode 100755
index 000000000..487f3343e
--- /dev/null
+++ b/3020/CH13/EX13.3/ex13_3.sce
@@ -0,0 +1,9 @@
+clc;
+clear all;
+de = 9.6e2 ; // Density of sodium in Kg per cubic meter
+At = 23; // Atomic weight of sodium
+n = 2;// Number of atoms present in a unit cell
+av = 6.022e26; // Avagadro constant
+mass = (n*At)/av;
+v = (mass/de)^(1/3); // Volume of a unit cell
+disp('m',v,'The lattice constant osf sodium is')