summaryrefslogtreecommitdiff
path: root/3411/CH10/EX2.5.u2/Ex2_5_u2.sce
blob: 7e6d6b207145d26c8aade847cacfb70fbee6ef95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 2_5_u2
clc();
clear;
//To calculate the no of states for conduction electrons and the average energy interval 
n=9.11*10^-31            //units in Kg
E=5*1.6*10^-19        //units in J
v=10^-6       //units in meter^3
h=6.67*10^-34               //units in m^2 kg s^-1
NE=(8*sqrt(2)*%pi*n^1.5*E^0.5*v)/h^3        //units in J^-1
no=NE*0.01*1.6*10^-19           //units in J
printf("Available number of energy states is ")
disp(no)
interval=0.01/no        //units in eV
printf("Average energy interval is")
disp(interval)
printf("eV")
//Given in text book available no of energy states is 1.52*10^20 but correct answer is 1.490D+20  and for average energy interval is 7*10^-23 eV but correct answer is 6.709D-23 eV