One way to deal with this is to write your matrices with 0's and 1's, and then do a *cast* as in the example below
gap> [[1,0],[0,1]] * One(GF(2)); [ [ Z(2)^0, 0*Z(2) ], [ 0*Z(2), Z(2)^0 ] ] Best, Andrea On 31 December 2012 12:51, Jianrong Li <lij...@gmail.com> wrote: > Dear Forum, > > I want to work over the field F_2 with only two elements 0, 1. 1+1=0. > > I have matrices with entries 0, 1. The multiplication of the matrices are > over F_2. > > I would like to define the default field as F_2. How could I do that in > GAP? > > I tried DefaultField(Z(2)). But it seems that this doesn't work. > > Thank you very much. > > Best wishes, > Jianrong. > _______________________________________________ > Forum mailing list > Forum@mail.gap-system.org > http://mail.gap-system.org/mailman/listinfo/forum > _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum