summaryrefslogtreecommitdiff
path: root/74/CH3/EX3.16/example16_sce.sce
diff options
context:
space:
mode:
Diffstat (limited to '74/CH3/EX3.16/example16_sce.sce')
-rwxr-xr-x74/CH3/EX3.16/example16_sce.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/74/CH3/EX3.16/example16_sce.sce b/74/CH3/EX3.16/example16_sce.sce
new file mode 100755
index 000000000..166cf5b03
--- /dev/null
+++ b/74/CH3/EX3.16/example16_sce.sce
@@ -0,0 +1,15 @@
+//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)
+// output of subtracter is Vout=Vout2-Vout1 \ No newline at end of file