summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.28/2_28.sce
diff options
context:
space:
mode:
Diffstat (limited to '1523/CH2/EX2.28/2_28.sce')
-rwxr-xr-x1523/CH2/EX2.28/2_28.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1523/CH2/EX2.28/2_28.sce b/1523/CH2/EX2.28/2_28.sce
new file mode 100755
index 000000000..991dcc418
--- /dev/null
+++ b/1523/CH2/EX2.28/2_28.sce
@@ -0,0 +1,16 @@
+//Network Theorem 1
+//page no-2.32
+//example2.28
+disp("Applying KCL to node 1:");
+disp("4*VA-2*VB = 5");....//equation 1
+disp("Applying KCL to node 2:");
+disp("-2*VA+3*VB = 4");...//equation 2
+disp("Solving equations 1 and 2");...//solving equations in matrix form
+A=[4 -2;-2 3];
+B=[5 4]'
+X=inv(A)*B;
+disp(X);
+disp("VA= 2.88 V");
+disp("VB= 3.25 V");
+
+