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.25/2_25.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 1523/CH2/EX2.25/2_25.sce (limited to '1523/CH2/EX2.25/2_25.sce') 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"); + -- cgit