SetTheory - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


RealBox

  

SetTheory

  

set-theoretic operations on RealBox objects

  

Union

  

compute the union of two RealBox objects

  

Intersection

  

compute the intersection of two RealBox objects

  

NonNegativePart

  

compute the intersection of a RealBox with the non-negative real axis

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Union( a, b )

Intersection( a, b )

NonNegativePart( b )

Parameters

a

-

RealBox object

b

-

RealBox object

precopt

-

(optional) equation of the form precision = n, where n is a positive integer

Description

• 

There are two set-theoretic operations defined on RealBox objects.

Union( a, b )

the union of the RealBox objects a and b

Intersection( a, b )

the intersection of the RealBox objects a and b

NonNegativePart( b )

the intersection of the RealBox b with the non-negative real axis

• 

Note that there are also predicates Contains and Overlaps that are set-theoretic in nature which are documented in RealBox[Predicates].

• 

Use the 'precision' = n option to control the precision used in these methods. For more details on precision, see BoxPrecision.

Examples

aRealBox1.0,0.5

aRealBox: 1±0.5

(1)

bRealBox1.5,0.6

bRealBox: 1.5±0.6

(2)

Uniona,b

RealBox: 1.3±0.8

(3)

Intersectiona,b

RealBox: 1.2±0.3

(4)

UnionRealBox2,0.5,RealBox3,0.5

RealBox: 2.5±1

(5)

IntersectionRealBox2,0.5,RealBox3,0.5

RealBox: 2.5±9.31323ⅇ-10

(6)

Note that an intersection can only be formed for RealBox objects that have nonempty intersection.

IntersectionRealBox2,0.4,RealBox3,0.4

Error, (in RealBox:-extIntersection) non-overlapping real boxes

OverlapsRealBox2,0.4,RealBox3,0.4

false

(7)

This is not necessary, however, for unions.

UnionRealBox2,0.4,RealBox3,0.4

RealBox: 2.5±0.9

(8)

Compatibility

• 

The RealBox[SetTheory], RealBox:-Union, RealBox:-Intersection and RealBox:-NonNegativePart commands were introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

RealBox

RealBox[Contains]

RealBox[Overlaps]

RealBox[Predicates]