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.18 | |
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.18')
-rwxr-xr-x | 1523/CH2/EX2.18/2_18.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1523/CH2/EX2.18/2_18.sce b/1523/CH2/EX2.18/2_18.sce new file mode 100755 index 000000000..8c1bcb381 --- /dev/null +++ b/1523/CH2/EX2.18/2_18.sce @@ -0,0 +1,21 @@ +//Network Theorem-1
+//pg no.-2.25
+//example2.18
+disp("from the fig,");
+disp("Iy=I1");....//equation 1
+disp("Ix=I1-I2");....//equation 2
+disp("Applying Kvl to mesh 1:");
+disp("-10*I1+3*I2=5");....//equation 3
+disp("Applying Kvl to mesh 2:");
+disp("-I1-3*I2=10");...//equation 4
+disp("Solving equations 3 and 4");...//solving equations in matrix form
+A=[-10 3;-1 -3];
+B=[5 10]'
+X=inv(A)*B;
+disp(X);
+disp("I1=-1.364 A");
+disp("I2=-2878 A");
+x=-1.364;
+y=-2.878;
+Ix=x-y;
+mprintf("\nIy = %.3f A \nIx = %.3f A",x,Ix);
|