MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Working modulo 2


On Sep 19, 2:56 am, me13013 <me13... at gmail.com> 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

PolynomialMod[7 + x + 4 y + 4 x y + 3 z + 2 x z + 4 y z + 4 x y z, 2]

1 + x + z


  • Prev by Date: Re: the graphic of a function
  • Next by Date: How to consider two fitting methods when using Findfit in Mathematica
  • Previous by thread: Re: Working modulo 2
  • Next by thread: Re: Working modulo 2