Function: math[inter] - intersection between two ranges or RealRanges

Calling Sequence:

inter(r1, r2);

Parameters:

r1 - a Maple range, RealRange expression, relation, or set(relation)
r2 - a Maple range, RealRange expression, relation, or set(relation)

Description:

This function checks whether two intervals `overlap` and if so, their intersection is returned as a Maple range; otherwise inter returns NULL. If the two intervals r1, r2 only intersect at a point a, a is returned.

If given, Open properties are taken into account.

Note that if relations or sets of relations are passed to inter, those relations must contain the same indeterminate. Expressions like x > 1, y < 2 will not be accepted.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, inter).

Examples:

> with(math, inter):

> inter(-10 .. Open(1), 0 .. infinity);

[Maple Math]

> inter(RealRange(2, 4), RealRange(Open(0), 2));

[Maple Math]

> inter(-infinity .. 0, RealRange(1, 10));

> inter(-infinity .. infinity, 0 .. 1);

[Maple Math]

> inter({x>0}, {x<=2});

[Maple Math]

See Also:

math/domain , convert/RealRange , convert/range , type/RealRange , type/range , range , property .

Version History:

Version 1.0 as of December 30, 1997
Version 1.1 as of February 08, 1998

Version 1.2 as of December 11, 1998