summaryrefslogtreecommitdiff
path: root/1586/CH4/EX4.2/EXP4_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1586/CH4/EX4.2/EXP4_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1586/CH4/EX4.2/EXP4_2.sce')
-rw-r--r--1586/CH4/EX4.2/EXP4_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1586/CH4/EX4.2/EXP4_2.sce b/1586/CH4/EX4.2/EXP4_2.sce
new file mode 100644
index 000000000..60b9e8599
--- /dev/null
+++ b/1586/CH4/EX4.2/EXP4_2.sce
@@ -0,0 +1,15 @@
+clc;funcprot(0);//EXAMPLE 4.2
+// Initialisation of Variables
+n1=2;..........//No. of Atoms in BCC iron Crystal
+m=55.847;..........//Atomic mass of BCC iron crystal
+a0=2.866*10^-8;......//The lattice parameter of BCC iron in cm
+Na=6.02*10^23;.......//Avogadro’s number in atoms/mol
+rho1=7.87;........//Required density of iron BCC in g/cm^3
+//CALCULATIONS
+rho2=(n1*m)/(a0^3*Na);..........//The expected theoretical density of iron BCC
+X=(rho1*a0^3*Na)/m;.........//Number of iron atoms and vacancies that would be present in each unit cell for the required density
+n2=n1-X;..........// no. of vacacies per unit cell
+V=n2/a0^3;.........//The number of vacancies per cm^3
+disp(rho2,"The expected theoretical density of iron BCC ")
+disp(X,"Number of iron atoms that would be present in each unit cell for the required density:")
+disp(V,"The number of vacancies per cm^3 :")