summaryrefslogtreecommitdiff
path: root/3507/CH13/EX13.17/Ex13_17.sce
blob: b4625c49262294be954bcb92f1f6b8789a9306c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//chapter13
//example13.17
//page291

Es=10d-3 // V
Rs=3d3 // ohm
Rin=7d3 // ohm
Rout=15 // ohm
Rl=35 // ohm

I1=Es/(Rs+Rin)
V1=I1*Rin
Av=Ao*Rl/(Rout+Rl) 
// since V2/V1=Av, we get
V2=V1*Av

P2=V2^2/Rl
P1=V1^2/Rin
Ap=P2/P1

printf("magnitude of output voltage = %.2f V \n",V2)
printf("power gain = %.2f \n",Ap)