summaryrefslogtreecommitdiff
path: root/2459/CH13/EX13.7/Ex13_7.sce
blob: abaf43a45434d6d7868d960a52e519391a3d92f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter13
//example13.7
//page282

Rc=10 // kilo ohm
Rl=10 // kilo ohm
Rin=2.5 // kilo ohm
gain_beta=100
Vin=1 // mV

R_AC=Rc*Rl/(Rc+Rl)
Av=gain_beta*R_AC/Rin

// since Av=Vout/Vin we get
Vout=Av*Vin

printf("output voltage = %.3f mV \n",Vout)