summaryrefslogtreecommitdiff
path: root/3682/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3682/CH4/EX4.2/Ex4_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3682/CH4/EX4.2/Ex4_2.sce')
-rw-r--r--3682/CH4/EX4.2/Ex4_2.sce38
1 files changed, 38 insertions, 0 deletions
diff --git a/3682/CH4/EX4.2/Ex4_2.sce b/3682/CH4/EX4.2/Ex4_2.sce
new file mode 100644
index 000000000..7d389fe27
--- /dev/null
+++ b/3682/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,38 @@
+// Exa 4.2
+
+clc;
+clear;
+
+// Given data
+
+// Added-subtractor as shown in fig. 4.4(a).
+R1=40*10^3; // Ω
+R2=25*10^3; // Ω
+R3=10*10^3; // Ω
+R4=20*10^3; // Ω
+R5=30*10^3; // Ω
+Rf=50*10^3; // Ω
+V1=2; // Volts
+V2=3; // Volts
+V3=4; // Volts
+V4=5; // Volts
+
+// Solution
+
+printf('The negative sum is obtained by setting V3=V4=0. Thus,\n ');
+ Vo1=-(Rf/R1)*V1-(Rf/R2)*V2;
+printf(' Vo1 = %.1f Volts. \n ',Vo1);
+printf('\n Now set V1=V2=0 to find the output voltage due to V3 and V4. \n The voltage Vo2 at the positive terminal due to V3 and V4 can be found by using superposition theorem as shown in Fig. 4.4(b) as \n ');
+
+Rllel=( 1/R4 + 1/R5)^-1;
+Rllel1=(1/R3+1/R5)^-1;
+Vo2= (Rllel/(R3+Rllel))*V3+ (Rllel1/(Rllel1+R4))*V4;
+printf(' Vo2 = %.3f Volts. \n ',Vo2 );
+printf('\n The output voltage Vo3 due to V3 and V4 now can be determined from the equivalent circuit of Fig. 4.4(c) as \n ');
+Rllel2=(1/R1+1/R2)^-1;
+Vo3=(1+(Rf/Rllel2))*Vo2;
+printf(' Vo3 = %.3f Volts. \n ',Vo3);
+printf('\n The total output voltage V0 is given as sum of Vo1 + Vo3.\n ');
+Vout=Vo1+Vo3;
+printf(' The output voltage = %.3f Volts. \n ',Vout);
+printf('\n\n The equivalent circuit at various in between steps are shown in Fig. 4.4(b-c).');