summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.17
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH2/EX2.17
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1523/CH2/EX2.17')
-rwxr-xr-x1523/CH2/EX2.17/2_17.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1523/CH2/EX2.17/2_17.sce b/1523/CH2/EX2.17/2_17.sce
new file mode 100755
index 000000000..1ee971fe7
--- /dev/null
+++ b/1523/CH2/EX2.17/2_17.sce
@@ -0,0 +1,17 @@
+//Network Theorem 1
+//page no-2.25
+//example2.17
+disp("from the fig,");
+disp("V1=-5*I1");....//equation 1
+disp("V2=2*I2");....//equation 2
+disp("Applying Kvl to mesh 1:");
+disp("20*I1+3*I2=-5");....//equation 3
+disp("Applying Kvl to mesh 2:");
+disp("11*I1-3*I2=10");...//equation 4
+disp("Solving equations 3 and 4");...//solving equations in matrix form
+A=[20 3;11 -3];
+B=[-5 10]'
+X=inv(A)*B;
+disp(X);
+disp("I1=0.161 A");
+disp("I2=-2.742 A"); \ No newline at end of file