summaryrefslogtreecommitdiff
path: root/2459/CH16/EX16.17/Ex16_17.sce
blob: e36e9c68066f278c32413abc92687a04d7d42d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter16
//example16.17
//page357

Vcc=10 // V
R1= 10 // kilo ohm
R2=10 // kilo ohm
Vbe=0.7 // V
Re=5000 // ohm

V2=Vcc*R2/(R1+R2)
Ve=V2-Vbe
Ie=Ve/(Re/1000) // in mA
re_dash=25/Ie
Av=Re/(re_dash+Re)

printf("voltage gain = %.3f \n",Av)