L'impédance Z peut s'écrire en notation complexe :
$\underline{Z}=\frac{1}{\frac{1}{R}+j \left( C\omega-\frac{1}{L\omega} \right) }$
Le module :
$|Z|=\frac{1}{\sqrt{ \left( \frac{1}{R} \right) ^2+ \left( C\omega-\frac{1}{L\omega} \right) ^2}} \; \Omega $
L'agument :
$arg Z = arctan \frac{1}{R \left( C \omega - \frac{1}{L \omega}\right) } \; modulo \; 2\pi $
Programme Octave ou Matlab
# definition des valeurs
R=1E3;
L=1.82E-3;
f0=162E3;
w0=f0*2*pi;
C=1/(w0^2*L);
# creation de l'axe des x
f=logspace(4,7,10000);
w=f*2*pi;
# module
modZ=1 ./ sqrt((1/R^2)+power((C*w - 1 ./ (L*w)),2));
# argument
argZ=atan(1 ./ (R*(C*w- 1 ./ (L*w))));
#trace
subplot (2, 1, 1);
semilogx(f,modZ,'r');
grid 'on';
set(gca, 'xminorgrid', 'on');
xlabel('f (Hz)');
ylabel('Impedance (Ohm)');
title('Impedance en fonction de la frequence', 'fontsize', 20);
subplot (2, 1, 2)
semilogx(f,argZ,'r');
grid 'on';
set(gca, 'xminorgrid', 'on');
xlabel('f (Hz)');
ylabel('Phase (rad)');
title('Phase en fonction de la frequence', 'fontsize', 20);