summaryrefslogtreecommitdiff
path: root/2528/CH4/EX4.4/Ex4_4.sce
blob: 86705c07a544524d08d4ac9f02c38b24a1d9b637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clc;
clear;
close;
//pagec no 100
Rf=14*10^3;//in ohm
Ri=2*10^3;//in ohm
Av1=1+(Rf/Ri);
disp(Av1,"Av1 is");
Av3=20*log10(Av1);
disp(Av3,"Av1 in dB is");

Rf=18*10^3;//in ohm
Ri=2*10^3;//in ohm
Av2=1+(Rf/Ri);
disp(Av2,"Av2 is");
Av4=20*log10(Av2);
disp(Av4,"Av2 dB is ");
Avt=Av3+Av4;
disp(Avt,"Total Gain dB Av1+Av2 is");
vin=-30;//in dB
vout=Avt+vin;
disp(vout,"Vout in dB ");