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 /296/CH1/EX1.1 | |
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 '296/CH1/EX1.1')
-rwxr-xr-x | 296/CH1/EX1.1/eg1_1.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/296/CH1/EX1.1/eg1_1.sce b/296/CH1/EX1.1/eg1_1.sce new file mode 100755 index 000000000..947def86d --- /dev/null +++ b/296/CH1/EX1.1/eg1_1.sce @@ -0,0 +1,10 @@ +a = 5; // lattice constant
+b = 0.5*sqrt(a^2 + a^2 +a^2); //separation between nearest atoms
+r = 0.5*b; //radius of each atom
+V = 4/3*%pi*r*r*r; //Volume of each atom
+n = 1+8*0.125; //number of atoms per cube
+pf = V*n/(a*a*a); //packing fraction
+disp("1)")
+disp(a,"lattice constant (in armstrong)=")
+disp(r,"radius of atoms (in armstrong) =")
+disp(pf,"maximum packing fraction =")
\ No newline at end of file |