summaryrefslogtreecommitdiff
path: root/275/CH5/EX5.5.10/Ch5_5_10.sce
blob: 903318ed3219f35e5f7e43f02dd1f8f99533a131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc
disp("Example 5.10")
printf("\n")
disp("Calculate overall voltage gain in db & output voltage when input voltage is 1uV for cascaded amplifier")
printf("Given\n")
//Voltage gain of amplifier
Av1=10
Av2=100
Av3=1000
//input voltage
Vi=10^-6
//overall voltage gain
Av=Av1*Av2*Av3
//in db
Avdb=20*log10(Av)
//output voltage when input voltage is 10^-6V
Vo=Av*Vi
printf("overall voltage gain in dB \n%f dB\n",Avdb)
printf("output voltage \n%f volt\n",Vo)