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

//Variable declaration
Kb=1.38*10**-23;    //boltzmann constant
T1=300;    //temperature(K)
T2=320;    //temperature(K)
rho1=5;    //resistivity(ohm m)
rho2=2.5;    //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))