F=6
F = 6
L=0.8
L = 0.8
Zid=i*2*Pi*F*L
Zid = 30.159289474i
Z11=Z11+Zid
Z11 = 39.884605823 - 25.368401798i
Z12=Z12+Zid
Z12 = 7.042220881 + 28.456758837i
Z21=Z21+Zid
Z21 = 401.927505419 + 426.637238752i
Z22=Z22+Zid
Z22 = 81.999216336 + 3.857342339i
'Z param to S
S11=( (Z11-Conj(Z01))*(Z22+Z02)-Z12*Z21) / ( (Z11+Z01)*(Z22+Z02)-Z12*Z21 )
S11 = 0.637866736 - 0.315085812i
S12= (2*Z12*Sqrt(Re(Z01)*Re(Z02)))/ ((Z11+Z01)*(Z22+Z02) - Z12*Z21)
S12 = -0.045795371 + 0.096217929i
S21= (2*Z21*Sqrt(Re(Z01)*Re(Z02)))/ ((Z11+Z01)*(Z22+Z02) - Z12*Z21)
S21 = 0.146388112 + 2.125592326i
S22=( (Z11+Z01) * (Z22-Conj(Z02) ) -Z12*Z21 ) / ( (Z11+Z01)*(Z22+Z02)-Z12*Z21 )
S22 = 0.688880575 - 0.135868441i
' stab factor
delta=S11*S22-S12*S21
delta = 0.607827776 - 0.220465327i
k=(1-Abs(S11)^2-Abs(S22)^2+Abs(delta)^2) / (2*Abs(S12*S21))
k = 0.922500853