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 --- 2198/CH2/EX2.12.8/Ex2_12_8.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 2198/CH2/EX2.12.8/Ex2_12_8.sce (limited to '2198/CH2/EX2.12.8') diff --git a/2198/CH2/EX2.12.8/Ex2_12_8.sce b/2198/CH2/EX2.12.8/Ex2_12_8.sce new file mode 100755 index 000000000..6695075cd --- /dev/null +++ b/2198/CH2/EX2.12.8/Ex2_12_8.sce @@ -0,0 +1,19 @@ +//Ex 2.12.8 +clc;clear;close; +format('v',8); + +//Given : +Rf=10;//ohm +Vgamma=0.5;//Volt +RL=20;//ohm +V=3;//Volt +//Loop 1: 75*I1-50*I=V-Vgamma +//Loop 2: -50*I1+80*I=-Vgamma +A=[75 -50;-50 80]; +B=[V-Vgamma -Vgamma]; +X=B*A^-1; +I1=X(1);//A +I=X(2);//A +Vx=-Vgamma+50*I1;//Volt +disp(Vx,"DC source(Volts) : "); +//Answer is wrong in the textbook. -- cgit