summaryrefslogtreecommitdiff
path: root/154/CH14/EX14.2/ch14_2.sce
blob: bb2330960ee53996bee1ac64e979e67c7782238e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
clc
disp("Example 14.2")
printf("\n")

s=%s;
//Applying KVL equation to the two loops we get
//V1=2*I1+s*(I1+I2)-I2
//V2=3*I2+s*(I1+I2)

//On solving we get
disp("(s+2)*I1+(s-1)*I2=V1    (1)");
disp("s*I1+(s+3)*I2=V2        (2)");

//The equations which contain Z parameters are
//V1=Z11*I1+Z12*I2
//V2=Z21*I1+Z22*I2

//On comparing (1) and (2) with above equations
Z11=s+2;
Z12=s-1;
Z21=s;
Z22=s+3;

disp(Z11,"Z11=")
disp(Z12,"Z12=")
disp(Z21,"Z21=")
disp(Z22,"Z22=")