summaryrefslogtreecommitdiff
path: root/2198/CH2/EX2.12.8/Ex2_12_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2198/CH2/EX2.12.8/Ex2_12_8.sce')
-rwxr-xr-x2198/CH2/EX2.12.8/Ex2_12_8.sce19
1 files changed, 19 insertions, 0 deletions
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.