Inverse
inert matrix inverse
Calling Sequence
Parameters
Description
Examples
Inverse(A) mod n
A
-
Matrix
n
integer, the modulus
The Inverse function is a placeholder for representing the inverse of a square matrix A.
The call Inverse(A) mod n computes the inverse of the square matrix A over a finite ring of characteristic n. This includes finite fields, GF(p), the integers mod p, and GF(p^k) where elements of GF(p^k) are expressed as polynomials in RootOf's.
A≔Matrix⁡1,2,3,1,3,0,1,4,3
A≔123130143
B≔Inverse⁡Amod5
B≔411203131
`~`Expand⁡A·Bmod5
100010001
The matrix A is singular mod 2:
Inverse⁡Amod2
Error, (in `mod/Inverse`) singular matrix
alias⁡a=RootOf⁡x4+x+1mod2:
A≔Matrix⁡1,a,a2,1,a2,1,1,a3,a2
A≔1aa21a211a3a2
B≔Inverse⁡Amod2
B≔a2+aa3+aa3+a2+1a3+a20a3+a2a+1a3+a+1a3
`~`Expand⁡A·Bmod2
See Also
Det
Gaussjord
LinearAlgebra[MatrixInverse]
LinearAlgebra[Modular]
LinearAlgebra[Modular][Inverse]
Linsolve
mod
Download Help Document