in Maple I can do something like
> A := Matrix([[1,2,3],[1,3,0],[1,4,3]]);
> b := Vector([1,2,3]);
> x := Linsolve(A,b) mod 6;
to solve a system of linear equations modulo 6 but the obvious
Sage code only works over integral domains:
sage: A = matrix(Zmod(6), [[1,2,3],[1,3,0],[1,4,3]])
sage: b = vector(Zmod(6), [1,2,3])
sage: A.solve_right(b)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
...
TypeError: base ring must be an integral domain
Is this implemented somewhere in Sage (or Pari, Singular, ...)?
Best,
Frithjof