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 /1736/CH1/EX1.3 | |
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 '1736/CH1/EX1.3')
-rwxr-xr-x | 1736/CH1/EX1.3/Ch01Ex3.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1736/CH1/EX1.3/Ch01Ex3.sce b/1736/CH1/EX1.3/Ch01Ex3.sce new file mode 100755 index 000000000..502ad6be2 --- /dev/null +++ b/1736/CH1/EX1.3/Ch01Ex3.sce @@ -0,0 +1,12 @@ +// Scilab Code Ex1.3 : Page-17 (2006)
+clc; clear;
+V = 10.58e-29; // Volume of the unit cell, metre cube
+a = poly(0, 'a'); // Declare a variable
+a = roots(3*sqrt(3)/2*1.58*a^3-V); // First lattice parameter, m
+c = 1.58*a(3); // Third lattice parameter, m
+printf("\nThe lattice parameters of hcp structure of Ti are:");
+printf("\na = %4.2f angstorm, c = %4.2f angstorm", a(3)/1e-010, c/1e-010);
+
+// Result
+// The lattice parameters of hcp structure of Ti are:
+// a = 2.95 angstorm, c = 4.67 angstorm
|