List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Re: inequalities
| [MUG] Re: inequalities |
|
Author: Maple Group
Posted: 15/06/2001 20:40:26 GDT
|
>> From: Maple Group
Greg Nash wrote:
>| Is anyone aware of "convert" commands within Maple 6 that convert
>| non-strict inequalities to strict inequalities. (It appears that to use
>| any of the present convert commands, inequalities have to be in strict
>| form to begin with.)
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 12 Jun 2001 02:34:58 +0200
From: Helmut Kahovec
To:
Subject: inequalities
Well, I get (Maple6):
> restart;
> convert(x<=sin(x),lessthan);
x < sin(x)
> convert(x<=sin(x),equality);
x = sin(x)
> convert(x<sin(x),lessequal);
x <= sin(x)
What's your problem?
With kind redards
Helmut
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 12 Jun 2001 04:54:16 -0400 (EDT)
From: Carl DeVore
To:
Subject: inequalities
Could you provide an example of your last statement? It certainly doesn't
seem true for me:
> ineq:= a<=b;
ineq := a <= b
> convert(ineq, lessthan);
a < b
> convert(a>=b, lessthan);
b < a
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 12 Jun 2001 12:29:27 -0700 (PDT)
From: Robert Israel
To:
Subject: inequalities
Well, it's not hard to write one:
> `convert/strict`:= proc(x)
if type(x,`<=`) then lhs(x) < rhs(x)
elif type(x,{set,list,table,rtable}) then map(`convert/strict`,x)
else x
fi
end;
Then, e.g.:
> convert(a<=b, strict);
a < b
Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
|
[View Complete Thread]
Previous by date: [MUG] about the instruction 'define' and 'forall', Alsina, Montse
Next by date: [MUG] Re: 3D graphs and HTML, Maple Group
Previous thread: [MUG] Maple Sound Output, How Wachspress
Next thread: [MUG] 3D graphs and HTML, Peter Lindsay
|