Re: Working modulo 2
- To: mathgroup at smc.vnet.net
- Subject: [mg92093] Re: [mg92082] Working modulo 2
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Sat, 20 Sep 2008 04:56:21 -0400 (EDT)
- References: <200809190956.FAA16536@smc.vnet.net>
PolynomialMod[7 + x + 4 y + 4 x y + 3 z + 2 x z + 4 y z + 4 x y z, 2] x + z + 1 Andrzej Kozlowski On 19 Sep 2008, at 18:56, me13013 wrote: > Howdy, > > How does one reduce a polynomial's coefficients modulo 2? For > example, I have a function that sums several polynomials, and > currently produces a result like this: > 7 + x + 4 y + 4 x y + 3 z + 2 x z + 4 y z + 4 x y z > I want to reduce this to > 1 + x + z > > I thought I might be able to do this by somehow coercing the terms > into a list and then doing Sum[L[[i]],{i,1,Length[L]},Modulus->2], but > no such luck. > > Any ideas? > > Thanks, > Bob H >
- References:
- Working modulo 2
- From: me13013 <me13013@gmail.com>
- Working modulo 2