summaryrefslogtreecommitdiff
path: root/74/CH3/EX3.16/example16_sce.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /74/CH3/EX3.16/example16_sce.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '74/CH3/EX3.16/example16_sce.sce')
-rwxr-xr-x74/CH3/EX3.16/example16_sce.sce30
1 files changed, 16 insertions, 14 deletions
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