summaryrefslogtreecommitdiff
path: root/3651/CH4/EX4.3
diff options
context:
space:
mode:
Diffstat (limited to '3651/CH4/EX4.3')
-rw-r--r--3651/CH4/EX4.3/3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3651/CH4/EX4.3/3.sce b/3651/CH4/EX4.3/3.sce
new file mode 100644
index 000000000..ff7aaf8fe
--- /dev/null
+++ b/3651/CH4/EX4.3/3.sce
@@ -0,0 +1,15 @@
+//Variable declaration
+d=970; //density(kg/m**3)
+Na=6.02*10**26; //avagadro number
+w=23; //atomic weight
+m=9.1*10**-31; //mass(kg)
+h=6.62*10**-34; //planck's constant
+
+//Calculation
+N=d*Na/w; //number of atoms/m**3
+x=h**2/(8*m);
+y=(3*N/%pi)**(2/3)
+EF=x*y; //fermi energy(J)
+
+//Result
+printf('fermi energy is %0.3f eV \n ',(EF/(1.6*10**-19)))