summaryrefslogtreecommitdiff
path: root/1664/CH6/EX6.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1664/CH6/EX6.2
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 '1664/CH6/EX6.2')
-rwxr-xr-x1664/CH6/EX6.2/Ex6_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1664/CH6/EX6.2/Ex6_2.sce b/1664/CH6/EX6.2/Ex6_2.sce
new file mode 100755
index 000000000..06e380df7
--- /dev/null
+++ b/1664/CH6/EX6.2/Ex6_2.sce
@@ -0,0 +1,17 @@
+
+//Example No.6.2.
+//Page No.185.
+clc;clear;
+a1 = 0.332*10^(-9);//Lattice parameter for BCC structure -[m].
+a2 = 0.296*10^(-9);//Lattice parameter for HCP structure -[m].
+c = 0.468*10^(-9);// -[m]
+disp('BCCv is the volume of BCC unit cell');
+BCCv = a1^(3);//Volume of BCC unit cell.
+printf("\nThe volume of BCC unit cell is %3.3e m^-3",BCCv);
+disp('HCPv is the volume of HCP unit cell');
+HCPv = (6*(sqrt(3)/4)*a2^(2)*c);//Volume of HCP unit cell.
+printf("\nThe volume of HCP unit cell is %3.3e m^3",HCPv);
+Cv = (HCPv-BCCv);
+printf("\nThe change in volume is %3.3e",Cv);
+Vp = (Cv/BCCv)*100;
+printf("\nThe volume change in percentage is %.1f percent",Vp);