summaryrefslogtreecommitdiff
path: root/2045/CH4/EX4.33/Ex4_33.sce
blob: a9634bdfec1c80603f9d6dcbf00b87cd136492bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//pagenumber 220 example 33
clear
beta1=100;
revcur=20*10^-9;//ampere
colres=3*10^3;//ohm
rb=200*10^3;//ohm
vbb=5;//volt
vcc=11;//volt
em1res=2*10^3;//ohm
ib=(vbb-0.7)/rb;
ic=beta1*ib;
ie=ib+ic;
disp("base current   =   "+string((ib))+"ampere");
disp("collector current   =   "+string((ic))+"ampere");
disp("emitter current   =   "+string((ie))+"ampere");//question asked only currents
//2*10^3 ohm added to emitter
ib=-(0.7-vcc)/(rb+((1+beta1)*em1res));
ic=beta1*ib;
ie=ib+ic;
disp("base current   =   "+string((ib))+"ampere");//correction in book
disp("collector current   =   "+string((ic))+"ampere");
disp("emitter current   =   "+string((ie))+"ampere");//question asked only currents