summaryrefslogtreecommitdiff
path: root/3669/CH8/EX8.16/16.sce
blob: 96239c1b1e8deb847f2a3907857cbed0475a1376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

//Variable declaration
Kb=1.38*10**-23;    //boltzmann constant
T1=293;    //temperature(K)
T2=305;    //temperature(K)
rho1=4.5;    //resistivity(ohm m)
rho2=2.0;    //resistivity(ohm m)
e=1.6*10**-19; 
//Calculation
Eg=2*Kb*log(rho1/rho2)/((1/T1)-(1/T2));     //energy gap(J)

//Result
printf('energy gap is %0.3f  eV   \n',(Eg/e))