summaryrefslogtreecommitdiff
path: root/2309/CH5/EX5.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2309/CH5/EX5.3
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 '2309/CH5/EX5.3')
-rwxr-xr-x2309/CH5/EX5.3/Ex5_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2309/CH5/EX5.3/Ex5_3.sce b/2309/CH5/EX5.3/Ex5_3.sce
new file mode 100755
index 000000000..881fa4018
--- /dev/null
+++ b/2309/CH5/EX5.3/Ex5_3.sce
@@ -0,0 +1,26 @@
+// Chapter 5 Example 3
+//==============================================================================
+clc;
+clear;
+
+//input data
+//α-Iron solidifies to BCC structure
+
+r = 1.273; // Atomic radius in angstrom
+N = 6.023*10^26; // Avagadros number in atoms/kilomole
+A = 55.85; // Atomic weight of α-Iron in kilograms
+n = 2; // No. of atoms per unit cell for BCC
+p = 7860; // density in kg/m^-3
+
+//Calculations
+
+// p = (n*A)/(N*a^3); density
+
+a = ((n*A)/(N*p))^(1/3); // lattice constant
+a1 = a*10^10; // m to angstrom conversion
+r = (a1*sqrt(3))/4 // atomic radius for BCC
+
+//Output
+mprintf('The Radius of the atom = %3.5f Å\n',r);
+mprintf(' Note : atomic wt taken as 55.58*10^-3 instead of 55.85 in calculation')
+//==============================================================================