MathGroup Archive 2010

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

Search the Archive

Re: Equals, Less, Greater, etc; Confused by this simple output.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109859] Re: Equals, Less, Greater, etc; Confused by this simple output.
  • From: <ingolf.dahl at telia.com>
  • Date: Wed, 19 May 2010 20:16:52 -0400 (EDT)

Try with these, and you will see that there is some sense in the Mathematica
output:

With[{a = "a little string"}, {a == a, a <= a, a >= a, a < a, a > a}]

With[{a = 1 + I}, {a == a, a <= a, a >= a, a < a, a > a}]

With[{a = {5, 2}}, {a == a, a <= a, a >= a, a < a, a > a}]

With[{a = (# &)}, {a == a, a <= a, a >= a, a < a, a > a}]

Best regards

Ingolf Dahl
ingolf.dahl at telia.com

-----Original Message-----
From: telefunkenvf14 [mailto:rgorka at gmail.com] 
Sent: den 19 maj 2010 13:03
To: mathgroup at smc.vnet.net
Subject: [mg109859] [mg109825] Equals, Less, Greater, etc; Confused by this simple
output.

Can someone offer an explanation for the following output?---I'm
trying to understand why it makes sense for Mathematica to be set up
to respond like this. (Of course, feel free to point out any glaringly
obvious math examples.)

In[1]:= {a == a, a <= a, a >= a, a < a, a > a}

Out[1]= {True, a <= a, a >= a, a < a, a > a}

I would have thought that a <= a and a >= a would both evaluate to
True, given that a == a does. Also, can something really be greater
than itself? Hmmm... maybe there's hope for me after all. :)

-RG



  • Prev by Date: Re: Equals, Less, Greater, etc; Confused by this simple output.
  • Next by Date: Re: Equals, Less, Greater, etc; Confused by this simple output.
  • Previous by thread: Re: Equals, Less, Greater, etc; Confused by this simple output.
  • Next by thread: Re: Equals, Less, Greater, etc; Confused by this simple output.