blob: 8e8eaf12fe92fab3ed44a093c1a656aa89656fd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//pagenumber 221 example 34
clear
em1cur=2*10^-3;//ampere
v1=12;//volt
vcc=12;//volt
format(12);
colres=5*10^3;//ohm
em1res=v1/em1cur;
colcur=em1cur;
voltag=colcur*colres;//ic*r
v1=vcc-(colres*colcur);
disp("emitter current = "+string((em1cur))+"ampere");
disp("collector current = "+string((colcur))+"ampere");
disp("voltage = "+string((voltag))+"volt");
disp("vcb = "+string(abs(v1))+"volt");
disp("emitter resistance = "+string((em1res))+"ohm");
|