diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH2/EX2.11 | |
download | Scilab-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.11')
-rwxr-xr-x | 1523/CH2/EX2.11/2_11.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1523/CH2/EX2.11/2_11.sce b/1523/CH2/EX2.11/2_11.sce new file mode 100755 index 000000000..f95f11dcd --- /dev/null +++ b/1523/CH2/EX2.11/2_11.sce @@ -0,0 +1,18 @@ +//Network Theorem 1
+//page no-2.20
+//example 2.11
+disp("Applying KVL to mesh 1");
+disp("3*I1-I2-2*I3=8");....//equation 1
+disp("Applying KVL to mesh 2");
+disp("-I1+8*I2-3*I3=10");....//equation 2
+disp("Applying KVL to mesh 3");
+disp("-2*I1-3*I2+10*I3=12");....//equation 3
+disp("Solving the three equations");
+A=[3 -1 -2;-1 8 -3;-2 -3 10];//solving the equations in matrix form
+B=[8 10 12]'
+X=inv(A)*B;
+disp(X);
+disp("I1=6.01 A");
+disp("I1=3.27 A");
+disp("I3=3.38 A");
+disp("I5ohm=3.38 A");
\ No newline at end of file |