summaryrefslogtreecommitdiff
path: root/74/CH1/EX1.6/example6_sce.sce
blob: 6cf7bad6949dd99e75475d55c64adab67221aab2 (plain)
1
2
3
4
5
6
7
8
//chapter 3
// exmaple 3.6
//page 124 , figure 3.17
R1=1*10^3;R2=R1;R3=R1;//given
Rf=1*10^3;//given
Vin1=2;Vin2=1;Vin3=4;//given
Vout=-((Rf/R1)*Vin1+(Rf/R2)*Vin2+(Rf/R3)*Vin3);
disp(Vout)