function svx

format compact;


f=10.^[1:.1:6]';
opa655v=sqrt(5.5e-9^2+220e-9^2./f);
opa655i=sqrt(1.2e-15^2+3.1e-17^2*f);

opa687v=sqrt(.95e-9^2+30e-9^2./f);
opa687i=sqrt(2.5e-12^2+150e-12^2./f);

L=100e-3; 
C=330e-12; 
R=20e3;   
Rs=50; 
s=2*pi*i*f;      

z=1./(1./(s*L+Rs)+s*C+1/R);
kT=1.38e-23*300;

absz=abs(z);

opa655r=sqrt(opa655v.^2+(opa655i.*absz).^2); 
opa687r=sqrt(opa687v.^2+(opa687i.*absz).^2);

loglog(f,opa655r,f,opa687r)
