summaryrefslogtreecommitdiff
path: root/1430/CH4/EX4.9/exa4_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH4/EX4.9/exa4_9.sce')
-rw-r--r--1430/CH4/EX4.9/exa4_9.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1430/CH4/EX4.9/exa4_9.sce b/1430/CH4/EX4.9/exa4_9.sce
new file mode 100644
index 000000000..00debd3c2
--- /dev/null
+++ b/1430/CH4/EX4.9/exa4_9.sce
@@ -0,0 +1,8 @@
+// Example 4.9
+// Mesh Analysis with a Supernode
+// From figure 4.31, Applying KVL in Supermesh we get,
+disp("6*(i_1-5)+10*i_1+3*(i_1+4)-20=0")
+// Rearrangements gives
+disp("(6+10+3)*i_1=6*5-(3*4)+20")
+i_1=linsolve((6+10+3),-((6*5)-(3*4)+20))// Linear equation solver
+disp(i_1,"Current through the Upper Portion of the Supermesh(in Amps)=")