MathGroup Archive 2001

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

Search the Archive

Re: Problem with Inequalities

  • To: mathgroup at
  • Subject: [mg29695] Re: [mg29675] Problem with Inequalities
  • From: BobHanlon at
  • Date: Wed, 4 Jul 2001 03:08:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In a message dated 2001/7/3 4:52:21 AM, Mail at writes:

>I'm desperately searching for help on my inequality question.
>How can I check for the truth of inequalities when I use variables
>instaed of numeric values?
>For example: a>b;TrueQ[a>b]
>does yield 'false' and for example a=1;b=0.5;TrueQ[a>b] yields 'True'.
>How do I have to tell the programm, that it should use a>b?

Use TagSet to set an upvalue for either a or b. For example, 

a /: (a > b) = True;

a > b


Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: Re: a problem with differentiation
  • Next by Date: Mathematica generating gifs for avi problem
  • Previous by thread: Problem with Inequalities
  • Next by thread: Re: Problem with Inequalities