summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.9
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.9
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.9')
-rwxr-xr-x1523/CH2/EX2.9/2_9.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1523/CH2/EX2.9/2_9.sce b/1523/CH2/EX2.9/2_9.sce
new file mode 100755
index 000000000..f1b7b6c58
--- /dev/null
+++ b/1523/CH2/EX2.9/2_9.sce
@@ -0,0 +1,18 @@
+//Network Theorem 1
+//page no-2.18
+//example2.9
+disp("Applying KVL to mesh 1");
+disp("10*I1-3*I2-6*I3=0");....//equation 1
+disp("Applying KVL to mesh 2");
+disp("-3*I1+10*I2=-5");....//equation 2
+disp("Applying KVL to mesh 3");
+disp("-6*I1+10*I3=25");....//equation 3
+disp("Solving the three equations");
+A=[10 -3 -6;-3 10 0;-6 0 10]//solving the equations in matrix form
+B=[10 -5 25]'
+X=inv(A)*B;
+disp(X);
+disp("I1=4.27 A");
+disp("I2=0.78 A");
+disp("I3=5.06 A");
+disp("I5ohm=4.27 A"); \ No newline at end of file