summaryrefslogtreecommitdiff
path: root/446/CH10/EX10.5/10_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /446/CH10/EX10.5/10_5.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 '446/CH10/EX10.5/10_5.sce')
-rwxr-xr-x446/CH10/EX10.5/10_5.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/446/CH10/EX10.5/10_5.sce b/446/CH10/EX10.5/10_5.sce
new file mode 100755
index 000000000..ef6131ac4
--- /dev/null
+++ b/446/CH10/EX10.5/10_5.sce
@@ -0,0 +1,8 @@
+clear
+clc
+disp('Exa-10.5');
+p=0.971; A=6.023*10^23; m=23.0; // various given values and constants
+c= (p*A/m)*10^6; // atoms per unit volume
+hc=1240; mc2=0.511*10^6; // hc=1240 eV.nm
+E= ((hc^2)/(2*mc2))*(((3/(8*%pi))*c)^(2/3)); //value of fermi energy
+printf('The fermi energy for sodium is %f eV',E*10^-18);//multiply by 10^-18 to convert metres^2 term to nm^2