MathGroup Archive 2000

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

Search the Archive

Re: Signing with Inequality Constraints

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22455] Re: [mg22479] Signing with Inequality Constraints
  • From: BobHanlon at aol.com
  • Date: Wed, 8 Mar 2000 02:21:53 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Using 3.0:

Unprotect[Greater, Less]; Clear[a, b, Greater, Less];

a /: (a > b) = True;
a /: (b < a) = True;
(b-a < 0) = True;
(0 > b-a) = True;

Protect[Greater, Less];

{b-a < 0, 0 > b-a, a > b, b < a}

{True, True, True, True}

Bob Hanlon

In a message dated 3/4/2000 3:46:17 AM, vazzana at kyblue.com writes:

>Using 3.0, I know that I can define
>In:= a :/ Sign[a]=-1
>in order to say a<0. .
>
>Is there an analogous way to tell Mathematica that  b-a<0.
>


  • Prev by Date: Re: assume an integer
  • Next by Date: Antipodal Maps
  • Previous by thread: Signing with Inequality Constraints
  • Next by thread: Re: Signing with Inequality Constraints