Maxima wrongly says a matrix is non-invertible

Viewed 61

The below matrix matrix is clearly invertible modulo 3.

But Maxima returns false when I try to obtain its inverse.

0 1
1 1

What is wrong here?

 M: matrix([0,1],[1,1]);

 zn_invert_by_lu(M,3 );

According to doc:

zn_invert_by_lu (matrix, p)

Uses the technique of LU-decomposition to compute the modular inverse of matrix over (Z/pZ). p must be a prime and matrix invertible. zn_invert_by_lu returns false if matrix is not invertible.

0 Answers
Related