blob: 9e66fe717e4e3ca2a296c2111f0fed859a074f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//example 14
clear
alpha1=0.99;
ib=25*10^-6;//ampere
icb=200*10^-9;//ampere
beta1=alpha1/(1-alpha1);
ic=beta1*ib+(beta1+1)*icb;
disp("collector current = "+string((ic))+"ampere");
ie1=(ic-icb)/alpha1;
disp("emitter current = "+string((ie1))+"ampere");
ic=beta1*ib;
disp("collector current with ib = "+string((ic))+"ampere");
ie=ic/alpha1;
disp("emitter current = "+string((ie))+"ampere");
w=(ie1-ie)/ie1;
disp("error = "+string((w)));
|