summaryrefslogtreecommitdiff
path: root/293/CH7/EX7.8/eg7_8.sce
blob: e33b3cc4294892dd146edb9df1f857a281c6ceab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//impedances in the circuit 
Z1 = complex(10,10);
Z2 = complex(15,20);
Z3 = complex(3,-4);
Z4 = complex(8,6);

Ybc = (1/Z2)+(1/Z3)+(1/Z4); //admittance of the parallel combination 
Zbc = (1/Ybc); //impedance of the parallel combination

Z = Z1 + Zbc; // equivalent impedance of the circuit 

disp(Z,"equivalent impedance of the circuit = ")