summaryrefslogtreecommitdiff
path: root/3836/CH6/EX6.5/Ex6_5.sce
blob: 958ef812fb58d0b6b225778bb652058749b530ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//Initialisation
Vi=1.82                     //Input Voltage of Amplifier
Ri=1000                    //Input Resistance of amplifier in Ohm
Vo=15.2                     //Output Voltage of Amplifier
Rl=50                     //Load Resistance


//Calculation
Pi=(Vi**2)*Ri**-1                //Input Power in Watt
Po=(Vo**2)*Rl**-1                //Output Power in Watt
Ap=Po/Pi                          //Power Gain
 

//Result
printf("\n Power Gain, Ap = %d",Ap)