summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.38
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.38
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.38')
-rwxr-xr-x1523/CH2/EX2.38/2_38.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1523/CH2/EX2.38/2_38.sce b/1523/CH2/EX2.38/2_38.sce
new file mode 100755
index 000000000..50b176e86
--- /dev/null
+++ b/1523/CH2/EX2.38/2_38.sce
@@ -0,0 +1,19 @@
+//Network Theorem 1
+//page no-2.40
+//example2.38
+disp("Applying KCL to node a:");
+disp("2*Va-0.5*Vb-0.5*Vc = 5");....//equation 1
+disp("Applying KCL to node b:");
+disp("-3/2*Va+5/6*Vb+2/3*Vc = -1");...//equation 2
+disp("Applying KCL to node c:");
+disp("1/2*Va+1/3*Vb-31/30*Vc = -1");...//equation 3
+disp("Solving equations 1,2 and 3");...//solving equations in matrix form
+A=[2 -0.5 -0.5;-3/2 5/6 2/3;0.5 1/3 -31/30 ];
+B=[5 -1 0]'
+X=inv(A)*B;
+disp(X);
+disp("Va= 4.303 V");
+disp("Vb= 3.87 V");
+disp("Vc= 3.33 V");
+
+