Function: convert/RealRange - convert into a RealRange expression
Calling Sequence:
convert(expr, RealRange);
convert(expr, RealRange, x);
Parameters:
expr -
a range, a relation, a set or list of two relations, a realcons, or the name 'real'
RealRange -
the name 'RealRange'
x -
a name (indeterminate)
Description:
This function converts a relation
x R a
or a set (or list) of two relations
{x R a, x R b}
(where x is a name, a and b are numeric values and R relations `<`, `<=`, `=`, `>`, or `>=`) provided
that a R x R b)
or a Maple range
a .. b
into a RealRange expression
RealRange(a, b)
If a value of type realcons is passed, then convert/RealRange just returns this value.
If the name 'real' is given as the first argument, RealRange(-infinity, infinity) is returned.
A shortcut for 'RealRange' is 'RR'.
This function is part of the math package, it is initialized via the math initialization file, and so can be used only after performing the command with(math, []) or with(math).
Examples:
> with(math):
> convert(x < 3, RealRange);
> convert({x >= 0, x < 2}, RealRange);
> convert(0 .. Open(2), RR);
> convert(1, RealRange);
> convert('real', RealRange);
See Also:
convert/range , property , range , math/rangemembers , math/sortranges .
Version History:
Version 1.0 as of December 14, 1997
Version 1.1 as of December 27, 1998