6.35.6 Inverse d’une matrice de ℤ/pℤ : Inverse
Inverse a pour argument une matrice A de Z/pZ.
Inverse renvoie inverse sans l’évaluer. Ensuite,
inverse calcule, dans Z/pZ, l’inverse de la matrice A.
On tape :
Inverse([[1,2,9] mod 13,[3,10,0] mod 13,[3,11,1] mod13])
Ou on tape :
Inverse([[1,2,9],[3,10,0],[3,11,1]] mod 13)
Ou on tape :
Inverse([[1,2,9]% 13,[3,10,0]% 13,[3,11,1]% 13])
Ou on tape :
Inverse([[1,2,9],[3,10,0],[3,11,1]]% 13)
On obtient :
inverse([[1% 13,2% 13,9% 13],[3% 13,10% 13,0% 13], [3% 13,11% 13,1% 13]])
puis :
[[2% 13,-4% 13,-5% 13],[2% 13,0% 13,-5% 13], [-2% 13,-1% 13,6% 13]]
c’est l’inverse de la matrice A=[[1,2,9],[3,10,0],[3,11,1]] dans Z/13Z.
Attention en mode Maple on tape :
Inverse([[1,2,9],[3,10,0],[3,11,1]]) mod 13
On obtient :
[[2,-4,-5],[2,0,-5],[-2,-1,6]]