Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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