summaryrefslogtreecommitdiff
path: root/3020/CH17/EX17.5/ex17_5.sce
blob: 8e01955fa172c6fce49ef797f30aa9be39339019 (plain)
1
2
3
4
5
6
7
8
9
10
clc;
clear all;
Ed=0.01;//difference between energy level to fermi level
Ed1=Ed*1.6e-19;//convertion from eV to J
T=200;//temperature in kelvin
k=1.38e-23;//boltzmann constant
x=Ed1/(k*T);//temporary variable
F=1/(1+exp(x));//fermi distribution function
disp('',F,'fermi distribution function is:')