Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Working modulo 2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92097] Re: Working modulo 2
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 20 Sep 2008 04:57:06 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <gavt0g$g4u$1@smc.vnet.net>

me13013 wrote:

> 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

*snip*

In[1]:= PolynomialMod[
  7 + x + 4 y + 4 x y + 3 z + 2 x z + 4 y z + 4 x y z, 2]

Out[1]= 1 + x + z

Regards,
-- Jean-Marc


  • Prev by Date: Re: the graphic of a function
  • Next by Date: Re: Working modulo 2
  • Previous by thread: Re: Working modulo 2
  • Next by thread: Re: Working modulo 2