summaryrefslogtreecommitdiff
path: root/1658/CH22/EX22.2/Ex22_2.sce
blob: 30a504519c0611c4ce982db9344bd37f422bf032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc;
//e.g 22.2
RD=56*10**3;
RG=1*10**6;
IDSS=1.5*10**-3;
VP=-1.5;
VD=10;
VDD=20;
ID=VD/RD;
disp('mA',ID*10**3,"ID=");
//ID=IDSS*(1-(VGS/VP))**2
VGS=VP*(1-sqrt(ID/IDSS));
disp('V',VGS*1,"VGS=");
VS=VGS;
R1=(-VS/ID)-4*10**3;
disp('kohm',R1*10**-3,"R1=");