summaryrefslogtreecommitdiff
path: root/2528/CH1/EX1.5/Ex1_5.sce
blob: b4b01f5705bee41e2177d98adfc0a1391a7d81a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Chapter 1
//Ordinary Gain 
//page 16
//Example no 1-5
//Given
clc;
Ao=2;       //in Volt
Ai=50;       // in milliVolt
Ai1=0.05;       //input in Volt
Av=Ao/Ai1;
printf("\n The ordinary power gain %.0f \n ",Av); // Result
Av1=20*log10(Av);
printf("\n The power gain is %.2f dB\n",Av1);// Result