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.31 | |
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.31')
-rwxr-xr-x | 1523/CH2/EX2.31/2_31.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1523/CH2/EX2.31/2_31.sce b/1523/CH2/EX2.31/2_31.sce new file mode 100755 index 000000000..60c78c318 --- /dev/null +++ b/1523/CH2/EX2.31/2_31.sce @@ -0,0 +1,22 @@ +//Network Theorem 1
+//page no-2.34
+//example2.30
+disp("Applying KCL to node a:");
+disp("0.5*Va-0.2*Vb = 34.2");....//equation 1
+disp("Applying KCL to node b:");
+disp("0.1*Va-0.4*Vb = -32.4");...//equation 2
+disp("Solving equations 1 and 2");...//solving equations in matrix form
+A=[0.5 -0.2;0.1 -0.4];
+B=[34.2 -32.4]'
+X=inv(A)*B;
+disp(X);
+disp("Va= 112 V");
+disp("Vb= 109 V");
+x=112;
+y=109;
+I1=(120-x)/0.2;
+I2=(x-y)/0.3;
+I3=(110-y)/0.1;
+mprintf("\nI1= %.f A \nI2= %.f A \nI3= %.f A",I1,I2,I3);
+
+
|