Hello, I want to do some symbolic operations (matrix/vector) in the GF(2). >
Here is an alternative approach (assuming all your expressions are polynomials in m1, m2, m3 and m4): sage: R.<m1,m2,m3,m4> = PolynomialRing(GF(2)) sage: q = Matrix(R, [[m1, m2], [m3, m4]]) sage: q [m1 m2] [m3 m4] sage: q*q [ m1^2 + m2*m3 m1*m2 + m2*m4] [m1*m3 + m3*m4 m2*m3 + m4^2] Note that the coefficients are elements of R = GF(2)[m1, m2, m3, m4], not of GF(2); cf. the other answers where they are in SR. Peter -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
