summaryrefslogtreecommitdiff
path: root/135/CH2/EX2.18/EX18.sce
blob: 2a5e56cb639abfda91d83d09609bdc0d0b2b5402 (plain)
1
2
3
4
5
6
7
8
9
10
// Example 2.18: Diffusion length
clc, clear
I=1e-3; // Forward bias current in amperes
C=1e-6; // Diffusion capacitance in farads
Dp=13; // Diffusion constant for Si
eta=2; // for Si
VT=26e-3; // Voltage equivalent to temperatue at room temperature in volts
Lp=sqrt(C*Dp*eta*VT/I); // Diffusion length in metres
Lp=Lp*1e2; // Diffusion length in centimetres
disp(Lp,"Diffusion length (cm) =");