summaryrefslogtreecommitdiff
path: root/3020/CH13/EX13.21/ex13_21.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3020/CH13/EX13.21/ex13_21.sce
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 '3020/CH13/EX13.21/ex13_21.sce')
-rwxr-xr-x3020/CH13/EX13.21/ex13_21.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3020/CH13/EX13.21/ex13_21.sce b/3020/CH13/EX13.21/ex13_21.sce
new file mode 100755
index 000000000..f328d9a7f
--- /dev/null
+++ b/3020/CH13/EX13.21/ex13_21.sce
@@ -0,0 +1,8 @@
+clc;
+clear all;
+rho = 8960;//Density of copper in Kg/m^3
+M = 63.54e-3; // Atomic weight of copper in Kg
+n = 4;// Number of atoms per unit cell of FCC
+N = 6.023e26; // Avagadro constant
+a = ((n*M)/(N*rho))^(1/3);//Lattice constant
+disp('m',a,'The lattice constant of copper is')