summaryrefslogtreecommitdiff
path: root/2384/CH2/EX2.9/ex2_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2384/CH2/EX2.9/ex2_9.sce')
-rwxr-xr-x2384/CH2/EX2.9/ex2_9.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2384/CH2/EX2.9/ex2_9.sce b/2384/CH2/EX2.9/ex2_9.sce
new file mode 100755
index 000000000..16804bbcb
--- /dev/null
+++ b/2384/CH2/EX2.9/ex2_9.sce
@@ -0,0 +1,20 @@
+// Exa 2.9
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+R1 = 6;// in ohm
+R2 = 4;// in ohm
+R3 = 3;// in ohm
+R_L = 6;// in ohm
+V1 = 6;// in V
+V2 = 15;// in V
+// V1 - R1*I - R3*I -V2 = 0
+I= (V1-V2)/(R1+R3);
+// Vth - R3*I -V2 = 0;
+Vth =V2+R3*I;// in V
+Rth = ((R1*R3)/(R1+R3)) + R2;// in ohm
+// current through 6 ohm resistance
+I_L = Vth/(Rth+R_L);// in A
+disp(I_L,"The current through 6 ohm resistance in A is");