summaryrefslogtreecommitdiff
path: root/3755/CH8/EX8.3/Ex8_3.sce
blob: 453da97851bcb6e375d04918d499f9245ad8c19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//
//
//

//Variable declaration
me=9.1*10^-31;          //mass of electron(kg)
kb=1.38*10^-23;      //boltzmann constant
T=300;      //temperature(K)
h=6.62*10^-34;      //planck's constant
Eg=0.7;     //band gap(eV)
e=1.6*10^-19;      //charge(c)

//Calculation
x=2*%pi*me*kb*T/(h^2);  
n=2*(x^(3/2))*exp(-Eg*e/(2*kb*T));       //density of holes and electrons(per m^3)

//Result
printf("\n density of holes and electrons is %0.3f *10^19 per m^3",n/10^19)