summaryrefslogtreecommitdiff
path: root/2411/CH6/EX6.11/Ex6_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/CH6/EX6.11/Ex6_11.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 '2411/CH6/EX6.11/Ex6_11.sce')
-rwxr-xr-x2411/CH6/EX6.11/Ex6_11.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2411/CH6/EX6.11/Ex6_11.sce b/2411/CH6/EX6.11/Ex6_11.sce
new file mode 100755
index 000000000..ad552cce3
--- /dev/null
+++ b/2411/CH6/EX6.11/Ex6_11.sce
@@ -0,0 +1,16 @@
+// Scilab Code Ex6.11: Page-351 (2008)
+clc; clear;
+h = 6.6e-034; // Planck's constant, Js
+m = 9.1e-031; // Mass of an electron, kg
+e = 1.6e-019; // Energy equivalent of 1 eV, J
+rho = 10.5; // Density of silver, g/cc
+A = 108; // Atomic weight of Ag, g/mole
+N_A = 6.023e+023; // Avogadro's number
+E_F0 = h^2/(8*m)*(3*N_A*rho*1e+006/(%pi*A))^(2/3); // Fermi energy of silver at 0 K, J
+U = 3/5*(N_A*rho*1e+006/A)*E_F0; // Internal energy of the electron gas per unit volume at 0 K, J/metre-cube
+printf("\nThe Fermi energy of silver at 0 K = %3.1f eV", E_F0/e);
+printf("\nThe internal energy of the electron gas per unit volume at 0 K = %4.2e J/cubic-metre", U);
+
+// Result
+// The Fermi energy of silver at 0 K = 5.5 eV
+// The internal energy of the electron gas per unit volume at 0 K = 3.07e+010 J/cubic-metre \ No newline at end of file