MathGroup Archive 2006

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

Search the Archive

Re: comparing finite fields elements with == or != doesn't work?!?!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71364] Re: comparing finite fields elements with == or != doesn't work?!?!
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 16 Nov 2006 00:52:39 -0500 (EST)
  • References: <ejeulg$1h0$1@smc.vnet.net>

Hello,
Equal (==) and Unequal (!=) compare atomic data like numbers or strings. 
They do not compare symbols, e.g. a==b is left unevaluated. To compare 
symbols SameQ (===) and UnsameQ (=!=) are needed.
Daniel

xarnaudx at gmail.com wrote:
> just try this out:
> 
> << Algebra`FiniteFields`
> F = GF[7];
> Print[F[{1}] != F[{2}]];
> 
> => doesn't work. It's simply not evaluated.
> 
> So the question is: how on earth to compare if finite fields elements
> are equal/different?!?
> 


  • Prev by Date: Re: Function defined with If
  • Next by Date: Re: (Mathematica wish list)
  • Previous by thread: Re: comparing finite fields elements with == or != doesn't work?!?!
  • Next by thread: Re: comparing finite fields elements with == or != doesn't work?!?!