ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 03 Jan 2017 09:47:45 -0600Generate a Matrix over a Finite Field with symbolic variableshttps://ask.sagemath.org/question/36148/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!!!benliuTue, 03 Jan 2017 09:47:45 -0600https://ask.sagemath.org/question/36148/