summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch14_4.sce
blob: 5e72eb06034e7ead217566027e24e233f967e0e6 (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
28
29
30
31
32
33
clc
disp("Example 14.4")
printf("\n")

s=%s;
Ya=3/(5*s+6);
Yb=2/(5*s+6);
Yc=s/(5*s+6);

//Writing KCL equations 
disp("I1=(Ya+Yc)*V1-Yc*V2        (1)")
disp("I2=-Yc*V1+(Yb+Yc)*V2       (2)")

//The equations which contain Y parameters are
//I1=Y11*V1+Y12*V2
//I2=Y21*V1+Y22*V2

//On comparing (1) and (2) with above equations
disp("Y11=Ya+Yc")
disp("Y12=-Yc=Y21")
disp("Y22=Yb+Yc")

//Substituting Ya , Yb and Yc
Y11=Ya+Yc
Y12=-Yc
Y21=-Yc
Y22=Yb+Yc

disp(Y11,"Y11=")
disp(Y12,"Y12=")
disp(Y21,"Y21=")
disp(Y22,"Y22=")