summaryrefslogtreecommitdiff
path: root/620/CH10/EX10.10.b/example10_10b.sce
blob: 1d630a87225d283321f05cd8890ed9c4931fe4bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
vb=13.2;
vg=14.4;
rb=0.3;
rg=0.2;
rl=0.68;
ib=vb/rb;
ig=vg/rg;
rn=rb*rg/(rb+rg);
in=ib+ig;
i=in*rn/(rn+rl);
disp("the load current (in A) is"); disp(i);
v=i*rl;
disp("the load voltage (in V) is"); disp(v);