Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

solve linear system in GF(7)

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 you

click to hide/show revision 2
retagged

solve linear system in GF(7)

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 you