summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.25/2_25.sce
diff options
context:
space:
mode:
Diffstat (limited to '1523/CH2/EX2.25/2_25.sce')
-rwxr-xr-x1523/CH2/EX2.25/2_25.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1523/CH2/EX2.25/2_25.sce b/1523/CH2/EX2.25/2_25.sce
new file mode 100755
index 000000000..e460c6b42
--- /dev/null
+++ b/1523/CH2/EX2.25/2_25.sce
@@ -0,0 +1,15 @@
+//Network Theorem 1
+//page no-2.30
+//example2.25
+disp("Applying KCL to node 1:");
+disp("8*VA-2*VB = 50");....//equation 1
+disp("Applying KCL to node 2:");
+disp("-3*VA+9*VB = 85");...//equation 2
+disp("Solving equations 1 and 2");...//solving equations in matrix form
+A=[8 -2;-3 9];
+B=[50 85]'
+X=inv(A)*B;
+disp(X);
+disp("VA= 9.39 V");
+disp("VB= 12.58 V");
+