Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Turning system of linear equations into a matrix

I have a very long list of equations (10^3 order of magnitude), but all linear. There are around 10^2 variables.

I would like to solve these equations in $F_2$, that is, in the field of 2 elements. Questions:

  1. Is there a handy-dandy "solve" command in Sage that allows me to list these equations, specify the field in which I want these equations to be interpreted, and Sage returns an answer?

  2. Or, is there a handy-dandy way I can input a list of linear equations, and Sage automatically returns a matrix? So long as I can read off which entries/columns of the matrix correspond to which variables in my original equations, I'm happy to then use commands taking matrices as inputs, and use the answer to the question "Solve large system of linear equations over GF(2)" (I would put the link in, but I don't have the karma).