From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1523/CH2/EX2.28/2_28.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1523/CH2/EX2.28/2_28.sce (limited to '1523/CH2/EX2.28') 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"); + + -- cgit