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

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: [mg109837] Re: Equals, Less, Greater, etc; Confused by this simple output.
  • From: "David Park" <djmpark at comcast.net>
  • Date: Wed, 19 May 2010 20:12:52 -0400 (EDT)

If a was a complex number, or a matrix would it have a naturally defined
order?

Simplify[{a == a, a <= a, a >= a, a < a, a > a}, a \[Element] Reals]
{True, True, True, False, False} 


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: telefunkenvf14 [mailto:rgorka at gmail.com] 

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: How to Enable Automatic Recalculation
  • Next by Date: Re: how to solve for all integer solutions, linear programming
  • 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.