ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 19 Oct 2019 05:21:24 +0200Echelon form over finite fieldshttps://ask.sagemath.org/question/48420/echelon-form-over-finite-fields/ I need to get the transformation matrix from echelon form reduction over finite fields but I found in the documentation the following statement:
*The matrix library used for Z/p-matrices does not return the transformation matrix, so the transformation option is ignored.*
More specifically, the call:
> M.echelon_form(transformation=True)
returns only the echelon matrix E but not the transformation matrix T, so that T*M=E, when M is over a finite field.
Is there any workaround? Can I get the transformation matrix over QQ and then reduce it over the finite field?
Any advice is much appreciated.
Thanks,
BoyanBoyanSat, 19 Oct 2019 05:21:24 +0200https://ask.sagemath.org/question/48420/solve linear system in GF(7)https://ask.sagemath.org/question/33574/solve-linear-system-in-gf7/ hi i would like to solve a small linear system in GF(7)
whats the syntax ?
var('A0','A1','B0','B1','B2','B3')
eqns =
[-A0 + 5*A1 + B0 + 2*B1 + 4*B2 + B3 + 3 == 0,
-3*A0 + 2*A1 + B0 + 4*B1 + 2*B2 + B3 + 1 == 0,
-6*A0 + 6*A1 + B0 + 6*B1 + B2 + 6*B3 - 6 == 0,
-5*A0 + 2*A1 + B0 + B1 + B2 + B3 - 5 == 0,
-4*A0 + 2*A1 + B0 + 3*B1 + 2*B2 + 6*B3 + 6 == 0,
-2*A0 + 4*A1 + B0 + 5*B1 + 4*B2 + 6*B3 + 6 == 0]
`solve(eqns,A0,A1,B0,B1,B2,B3)` will do it in Q or R by default.
thank youfaguiSun, 29 May 2016 19:11:15 +0200https://ask.sagemath.org/question/33574/