summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.10/2_10.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.10/2_10.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.10/2_10.sce')
-rwxr-xr-x1523/CH2/EX2.10/2_10.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1523/CH2/EX2.10/2_10.sce b/1523/CH2/EX2.10/2_10.sce
new file mode 100755
index 000000000..493ef73cc
--- /dev/null
+++ b/1523/CH2/EX2.10/2_10.sce
@@ -0,0 +1,18 @@
+//Network Theorem 1
+//page no-2.19
+//example 2.10
+disp("Applying KVL to mesh 1");
+disp("7*I1-I2=10");....//equation 1
+disp("Applying KVL to mesh 2");
+disp("-I1+6*I2-3*I3=0");....//equation 2
+disp("Applying KVL to mesh 3");
+disp("-3*I2+13*I3=-20");....//equation 3
+disp("Solving the three equations");
+A=[7 -1 0;-1 6 -3;0 -3 13];//solving the equations in matrix form
+B=[10 0 -20]'
+X=inv(A)*B;
+disp(X);
+disp("I1=1.34 A");
+disp("I1=-0.62 A");
+disp("I3=-1.68 A");
+disp("I2ohm=1.34 A"); \ No newline at end of file