summaryrefslogtreecommitdiff
path: root/74/CH3
diff options
context:
space:
mode:
Diffstat (limited to '74/CH3')
-rwxr-xr-x74/CH3/EX3.15/example15_sce.sce22
-rwxr-xr-x74/CH3/EX3.16/example16_sce.sce30
2 files changed, 27 insertions, 25 deletions
diff --git a/74/CH3/EX3.15/example15_sce.sce b/74/CH3/EX3.15/example15_sce.sce
index 3274b0863..3e64817bd 100755
--- a/74/CH3/EX3.15/example15_sce.sce
+++ b/74/CH3/EX3.15/example15_sce.sce
@@ -1,12 +1,12 @@
-//chapter 3
-// example 3.15
-//page 148
-// Vout=-(3Vin1+4Vin2+5Vin3)
-Rf=120*10^3;
-// for inverting summer we have Vout=-(Rf/R1Vin1+Rf/R2Vin2+Rf/R3Vin3)
-R=Rf/3;//Rf/R1=3 comparing the cofficients
-disp(R1)
-R2=Rf/4;
-disp(R2)
-R3=Rf/R3;
+//chapter 3
+// example 3.15
+//page 148
+// Vout=-(3Vin1+4Vin2+5Vin3)
+Rf=120*10^3;
+// for inverting summer we have Vout=-(Rf/R1Vin1+Rf/R2Vin2+Rf/R3Vin3)
+R1=Rf/3;//Rf/R1=3 comparing the cofficients
+disp(R1)
+R2=Rf/4;
+disp(R2)
+R3=Rf/R3;
disp(R3) \ No newline at end of file
diff --git a/74/CH3/EX3.16/example16_sce.sce b/74/CH3/EX3.16/example16_sce.sce
index 166cf5b03..2c44c8f76 100755
--- a/74/CH3/EX3.16/example16_sce.sce
+++ b/74/CH3/EX3.16/example16_sce.sce
@@ -1,15 +1,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:
-disp(R1,R2)
-Rf2=120*10^3
-// Vout2=-(Rf2/R2Vin1+Rf2/R4Vin3)
-R2=Rf2/3;
-R4=Rf2/5;
-disp(R2,R4)
+//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 \ No newline at end of file