summaryrefslogtreecommitdiff
path: root/74/CH3/EX3.16/example16_sce.sce
blob: 2c44c8f76066bb26509d4ae69b8e57712a650619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter 3
// example 3.16
// page 149
// Vout=2Vin1-3Vin2+4Vin3-5vin4 
Rf1=100*10^3
// Vout1=-(Rf1/R1Vin1+Rf1/R3Vin3)
R1=Rf1/2;// Rf1/R1=2  comapring the cofficient
R3=Rf1/4;
Rf2=120*10^3;
R2=Rf2/3;
disp(R1,R2)

// Vout2=-(Rf2/R2Vin1+Rf2/R4Vin3)

R4=Rf2/5;
disp(R2,R4)
// output of subtracter is Vout=Vout2-Vout1