summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.13/2_13.sce
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.13/2_13.sce
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.13/2_13.sce')
-rwxr-xr-x1523/CH2/EX2.13/2_13.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1523/CH2/EX2.13/2_13.sce b/1523/CH2/EX2.13/2_13.sce
new file mode 100755
index 000000000..ebb85dff8
--- /dev/null
+++ b/1523/CH2/EX2.13/2_13.sce
@@ -0,0 +1,19 @@
+//Network Theorem 1
+//page no-2.22
+//example 2.13
+disp("Applying KVL to mesh 1");
+disp("V+13*I1-2*I2-5*I3=20");...//mesh equation 1
+disp("Applying KVL to mesh 2");
+disp("2*I1-6*I2+I3=0");//mesh equation 2
+disp("Applying KVL to mesh 3");
+disp("V+5*I1+I2-10*I3=0");//mesh equation 3
+disp("putting I1=0 in equation 1, 2 and 3 we get");
+disp("V-2*I2-5*I3=20");....//equation 1
+disp("-6*I2+I3=0");....//equation 2
+disp("V+I2-10*I3=0");....//equation 3
+disp("Solving the three equations");
+A=[1 -2 -5;0 -6 1;1 1 -10];//solving the equations in matrix form
+B=[20 0 0]'
+X=inv(A)*B;
+disp(X);
+disp("V=43.7 V") \ No newline at end of file