Prev: combining ArrayPlot with ListLinePlot
Next: Numerical solution of differential equation with boundary values
From: Patrick Scheibe on 19 May 2010 20:10 Hi, <snip> > I would have thought that a <= a and a >= a would both evaluate to > True, given that a == a does. You cannot order complex numbers and now guess, what Mathematica uses for "a". Simplify[{a == a, a <= a, a >= a, a < a, a > a}, Element[a, Reals]] {True, True, True, False, False} Cheers Patrick
From: David Park on 19 May 2010 20:10 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(a)comcast.net http://home.comcast.net/~djmpark/ From: telefunkenvf14 [mailto:rgorka(a)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
First
|
Prev
|
Pages: 1 2 Prev: combining ArrayPlot with ListLinePlot Next: Numerical solution of differential equation with boundary values |