summaryrefslogtreecommitdiff
path: root/339/CH6/EX6.2/ex6_2.sce
blob: fb8d272e4f959f366e719e1932a3d724021e32ea (plain)
1
2
3
4
5
6
7
8
9
10
11
// doping concentrations
Na=1*10^18;
Nd=5*10^15;
//intrinsic concentrations
ni=1.5*10^10;
T=300;
term=(Na*Nd)/(ni*ni);
k=1.38*10^-23;
q=1.6*10^-19;
Vdiff=(k*T)*log(term)/q;
disp("Volts",Vdiff,"Barrier voltage");