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 /1985/CH13/EX13.2 | |
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 '1985/CH13/EX13.2')
-rwxr-xr-x | 1985/CH13/EX13.2/Chapter13_example2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1985/CH13/EX13.2/Chapter13_example2.sce b/1985/CH13/EX13.2/Chapter13_example2.sce new file mode 100755 index 000000000..e14c8f675 --- /dev/null +++ b/1985/CH13/EX13.2/Chapter13_example2.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Input data
+d=9.6*10^2//Density of sodium in kg/m^3
+a=23//Atomic weight of sodium
+n=2//Number of atoms present in one unit cell in bcc crystal
+x=6.023*10^26//Avagadro constant per kg mole
+
+//Calculations
+m=(n*a)/x//Mass of one unit cell in kg
+a1=(m/d)^(1/3)/10^-10//Lattice constant of sodium angstroms
+
+//Output
+printf('The lattice constant for sodium crystal is %3.1f angstroms',a1)
|