blob: 42eb4d273ab0949b76e899b6009f31c50242807d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Variable declaration
Ev=0
Ec=1.12
k=1.38*10**-23
T=300
mh=0.28
mc=0.12
e=1.6*10**-19
//Calculations
Ef=((Ec+Ev)/2)+((3*k*T)/(4*e))*log(mh/mc)
//Result
printf('Position of fermi level = %0.3f eV \n',(Ef))
|