R=330;
R3=0;
f=10000;
U1=5;
C=33*10^-9;
Xc1=1/(2*pi()*f*C);
%U0=(-2.9+15*(1/6))*1.3
%U90=(-2.71+15*(1/6))*1.3
%U0=-0.82;
%U90=0.66;
%Re=U0*pi()/2;
%Im=U90*pi()/2;
Re=1.3;
Im=1.27;
Xcm=-(R*U1*(Im*R^2 + 2*Im*R*R3 - U1*R*Xc1 + Im*R3^2 + Im*Xc1^2))/(Im^2*R^2 + 2*Im^2*R*R3 + Im^2*R3^2 + Im^2*Xc1^2 - 2*Im*R*U1*Xc1 + R^2*Re^2 - 2*R^2*Re*U1 + R^2*U1^2 + 2*R*R3*Re^2 - 2*R*R3*Re*U1 + R3^2*Re^2 + Re^2*Xc1^2);
Cm=1/(2*pi()*f*Xcm)
ESR=-(Im^2*R^3 + 2*Im^2*R^2*R3 + Im^2*R*R3^2 + Im^2*R*Xc1^2 - 2*Im*R^2*U1*Xc1 + R^3*Re^2 - R^3*Re*U1 + 2*R^2*R3*Re^2 - R^2*R3*U1^2 + R*R3^2*Re^2 + R*R3^2*Re*U1 + R*Re^2*Xc1^2 + R*Re*U1*Xc1^2)/(Im^2*R^2 + 2*Im^2*R*R3 + Im^2*R3^2 + Im^2*Xc1^2 - 2*Im*R*U1*Xc1 + R^2*Re^2 - 2*R^2*Re*U1 + R^2*U1^2 + 2*R*R3*Re^2 - 2*R*R3*Re*U1 + R3^2*Re^2 + Re^2*Xc1^2)
