Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Generate a Matrix over a Finite Field with symbolic variables

Hi everyone,

I am currently trying to generate a matrix over a finite field of 2 using symbolic variables a,b,c,and d instead of integers. The current problem I am having is that sage tries to convert these variables into integers and do not allow me to generate the matrix.

Inputting: var('a, b, c, d') m = matrix(GF(2), [[a,b], [e,f]]) gives me the error: TypeError: unable to convert a to an integer

Please help, Thank you!!!