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 /1319/CH12/EX12.22 | |
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 '1319/CH12/EX12.22')
-rw-r--r-- | 1319/CH12/EX12.22/i_22.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1319/CH12/EX12.22/i_22.sce b/1319/CH12/EX12.22/i_22.sce new file mode 100644 index 000000000..134830d87 --- /dev/null +++ b/1319/CH12/EX12.22/i_22.sce @@ -0,0 +1,25 @@ +// Determine Current through branch AB of the given network
+
+clc;
+clear;
+
+// MESH Equations
+// 4*i1-2*i2+0*i3=10
+// -2*i1+6*i2-2*i3=0
+//0*i1-2*i2+6*i3=0
+
+//Supply Voltage is 10V (Note printing mistake)
+
+R=[4 -2 0;-2 6 -2; 0 -2 6];
+V=[10;0;0];
+
+// Loop Currents
+
+I=inv(R)*V;
+
+i1=I(1);
+i2=I(2);
+i3=I(3);
+
+disp('amperes',abs(i2),'The current through branch AB of the network =')
+
|