summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch4_2.sce
blob: 46920920638684be87c120eff85df66bf8cc83fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clc
disp("Problem 4.2")
printf("\n")

//From figure 4.2
disp("The reduced incidence matrix is ")
A=[-1  1 0 0  1  0
    0 -1 1 0  0  1
    0  0 0 1 -1 -1]
    disp(A,"A=")
//Here node D is chosen as reference
//Let i=[ i1
//        i2
//        i3
//        i4
//        i5
//        i6 ]
//Multiplying [A] with [i] we get the KCL equations
disp("KCL equations are")
disp("-i1+i2+i5=0")
disp("-i2+i3+i6=0")
disp("i4-i5-i6=0")