summaryrefslogtreecommitdiff
path: root/1370/CH1/EX1.32/chapter1_32.sce
diff options
context:
space:
mode:
Diffstat (limited to '1370/CH1/EX1.32/chapter1_32.sce')
-rwxr-xr-x1370/CH1/EX1.32/chapter1_32.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1370/CH1/EX1.32/chapter1_32.sce b/1370/CH1/EX1.32/chapter1_32.sce
new file mode 100755
index 000000000..3318648f6
--- /dev/null
+++ b/1370/CH1/EX1.32/chapter1_32.sce
@@ -0,0 +1,20 @@
+//example1.32
+clc
+disp("Use the loop analysis")
+disp("From the current source branch,")
+disp("I3=1 A")
+disp("Applying KVL to the loops without current source we get,")
+disp("-6(I1)-4-5(I1)+5(I2)=0 i.e. -11(I1)+5(I2)=4 ..(1)")
+disp("-5(I2)+5(I1)-6-4(I2)-4(I3)=0 i.e. 5(I1)-9(I2)=10 (2)")
+disp("Solving, we get:")
+disp("-11(I1)+5((5I1-10)/9)=4")
+disp("Therefore, -99(I1)+25(I1)-50=36")
+i=86/(-74)
+format(7)
+disp(i,"Therefore, I1(in A)=")
+i=((5*(-1.1621))-10)/9
+disp(i,"and, I2(in A)=")
+disp("Current through 5ohm in specified direction is,")
+i=(-1.7567+1.1621)
+disp(i,"I(5ohm)[in A]=I2-I1= -1.7567-(-1.1621)=")
+disp("As negative, current through 5ohm flows in opposite direction to that specified in the circuit.")