summaryrefslogtreecommitdiff
path: root/2459/CH20/EX20.12/Ex20_12.sce
blob: de84e1d7d95d9bfaba313e2630c7fd5c368d68c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//chapter20
//example20.12
//page446

Vz=8.3 // V
Vbe=0.7 // V
Rl=100 // ohm
Rs=130 // ohm
Vin=22 // V

Vout=Vz+Vbe
Il=Vout/Rl
Is=(Vin-Vout)/Rs
Ic=Is-Il

printf("regulated output voltage = %.3f V \n",Vout)
printf("load current = %.3f mA \n",Il*1000)
printf("current through Rs = %.3f mA \n",Is*1000)
printf("collector current = %.3f mA \n",Ic*1000)