TP-probabilites/TP2/test_calcul_frequences.m

8 lines
222 B
Mathematica
Raw Permalink Normal View History

2023-06-10 19:01:20 +00:00
frequences = calcul_frequences('aabc',transpose('abc'))
resultat = (frequences==[0.5 ; 0.25 ; 0.25]);
if resultat~=1
fprintf('Il y a un probleme !\n');
else
fprintf('La fonction calcul_frequences est correcte !\n');
end