diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3515/CH1/EX1.24 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3515/CH1/EX1.24')
-rw-r--r-- | 3515/CH1/EX1.24/Ex_1_24.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3515/CH1/EX1.24/Ex_1_24.sce b/3515/CH1/EX1.24/Ex_1_24.sce new file mode 100644 index 000000000..81b82b97c --- /dev/null +++ b/3515/CH1/EX1.24/Ex_1_24.sce @@ -0,0 +1,24 @@ +// Exa 1.24
+format('v',7);
+clc;
+clear;
+close;
+// Given data
+R1= 9;// in kΩ
+R2= 1;// in kΩ
+R3= 2;// in kΩ
+R4= 3;// in kΩ
+// The output voltage, vo1= (1+R1/R2)*va
+vo1BYva= (1+R1/R2);// (i)
+// Voltage at node va= R4*v1/(R3+R4)
+vaBYv1= R4/(R3+R4);// (ii)
+// From (i) and (ii)
+vo1BYv1= vo1BYva*vaBYv1;// (iii)
+// The output voltage, vo2= (1+R1/R2)*va
+vo2BYva= (1+R1/R2);// (iv)
+// Voltage at node va= R3*v2/(R3+R4)
+vaBYv2= R3/(R3+R4);// (v)
+// From (i) and (ii)
+vo2BYv2= vo2BYva*vaBYv2;// (iii)
+// Total output vo= vo1 + vo2
+disp("Total voltage is "+string(vo1BYv1)+" v1 + "+string(vo2BYv2)+" v2")
|