Ask Your Question

benliu's profile - activity

2020-04-20 17:21:46 +0200 received badge  Famous Question (source)
2019-04-27 15:10:24 +0200 received badge  Notable Question (source)
2018-06-25 21:08:12 +0200 received badge  Popular Question (source)
2017-01-06 23:57:15 +0200 commented answer Generate a Matrix over a Finite Field with symbolic variables

Thank you so much!!!

2017-01-06 23:57:05 +0200 received badge  Supporter (source)
2017-01-03 20:32:51 +0200 received badge  Nice Question (source)
2017-01-03 17:46:05 +0200 received badge  Student (source)
2017-01-03 17:37:33 +0200 asked a question 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!!!