MathGroup Archive 2006

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

Search the Archive

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


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?!?!