J’ai fait ce TP sous forme d’un script python.
Télécharger le script ici.
Renvoie une figure :
import matplotlib.pyplot as plt
import math
Ue = [18.0, 17.9, 17.4, 16.3, 13.4, 13.1, 13.0, 12.8, 12.8, 12.8, 13.0, 13.2,
13.4, 13.8, 14.1, 14.7, 15.0, 15.2, 15.4]
Us = [2.08, 2.88, 4.24, 6.64, 10.1, 10.4, 10.6, 10.6, 10.7, 10.6, 10.5, 10.3,
10.1, 9.84, 9.52, 8.88, 8.56, 8.22, 8.00]
Ue = [20 * math.log(x) for x in Ue]
Us = [20 * math.log(x) for x in Us]
F = [500, 600, 700, 800, 900, 910, 920, 930, 940, 950, 960, 970, 980, 990,
1000, 1020, 1030, 1040, 1050]
plt.clf()
plt.style.use('dark_background')
plt.grid()
plt.plot(F, Ue, linewidth=0, marker="x", label="$U_e(F)$")
plt.plot(F, Us, linewidth=0, marker="x", label="$U_s(F)$")
plt.legend()
plt.savefig("p_tp_8-1")
plt.show()
Voir le PDF