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.34/2_34.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1523/CH2/EX2.34/2_34.sce (limited to '1523/CH2/EX2.34') diff --git a/1523/CH2/EX2.34/2_34.sce b/1523/CH2/EX2.34/2_34.sce new file mode 100755 index 000000000..ea96d7828 --- /dev/null +++ b/1523/CH2/EX2.34/2_34.sce @@ -0,0 +1,17 @@ +//Network Theorem 1 +//page no-2.37 +//example2.334 +disp("At node A:"); +disp("VA = 60");....//equation 1 +disp("Applying KCL to node B:"); +disp("-VA+3*VB-VC = 12");...//equation 2 +disp("Applying KCL to node C:"); +disp("-2*VA-5*VB+10*VC");...//equation 3 +disp("Solving equations 1,2 and 3");...//solving equations in matrix +A=[1 0 0;-1 3 -1;-2 -5 10]; +B=[60 12 24]' +X=inv(A)*B; +disp(X); +disp("VC= 31.68 V"); +disp("Voltage across the 100 Ohm resistor = 31.68 V"); + -- cgit