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/CH3/EX3.9/3_9.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 1523/CH3/EX3.9/3_9.sce (limited to '1523/CH3/EX3.9') diff --git a/1523/CH3/EX3.9/3_9.sce b/1523/CH3/EX3.9/3_9.sce new file mode 100755 index 000000000..412740ccb --- /dev/null +++ b/1523/CH3/EX3.9/3_9.sce @@ -0,0 +1,25 @@ +//Network Theorem 2 +//pg no 3.10 +//example 3.9 +//when 100 V source is acting alone +disp("Vx-5I1=0");//equation 1 +disp("Applying KVL to mesh,"); +disp("10Vx-15I1=-100");//equation 2 +A=[1 -5;10 -15];//solving equation in matrix form +B=[0 -100]' +X=inv(A)*B; +disp(X);//negative because of opposite direction +disp("I1 = 2.857 A"); +//when the 10 A source is acting alone +disp("9Vx+10I2=0");//equation 1 +disp("Applying KCL at Node 1,"); +disp("Vx=-100/7");//equation 2 +A=[9 10;1 0];//solving equation in matrix form +B=[0 -100/7]' +X=inv(A)*B; +disp(X); +disp("I2 = 12.857 A"); +a=2.857; +b=12.857; +x=a+b; +printf("\nBy superposition theorem, \nI = I1+I2 = %.3f A ",x); -- cgit