MathGroup Archive 2008

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

Search the Archive

Re: How can I evaluate this statement?


pircdefense wrote:

> I'm trying to show for all real numbers whether the following statement is true or false:
> 
> If a > b, then a^2 > b^2. I've tried various syntax and configurations in Mathematica, but I can't get it to report true or false. Can anyone offer a solution?

Functions such as ForAll, Exists, Resolve, Reduce, or FindInstance are 
your friends here. For instance,

In[1]:= Resolve[ForAll[{a, b}, a > b, a^2 > b^2]]

Out[1]= False

In[2]:= Resolve[ForAll[{a, b}, Inequality[a, Greater, b, GreaterEqual, 0],
      a^2 > b^2]]

Out[2]= True

In[3]:= Reduce[a > b && a^2 > b^2]

Out[3]= (b <= 0 && a > -b) || (b > 0 && a > b)

In[4]:= FindInstance[a > b && a^2 > b^2, {a, b}]

Out[4]= {{a -> 2, b -> -1}}


Regards,
-- Jean-Marc



  • Prev by Date: Re: How can I evaluate this statement?
  • Next by Date: Mathematica SIG (Washington DC Area)
  • Previous by thread: Re: How can I evaluate this statement?
  • Next by thread: Re: How can I evaluate this statement?