summaryrefslogtreecommitdiff
path: root/296/CH1/EX1.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /296/CH1/EX1.1
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 '296/CH1/EX1.1')
-rwxr-xr-x296/CH1/EX1.1/eg1_1.sce10
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