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

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

> 

a≔RealBox⁡1.0,0.5

a≔⟨RealBox: 1±0.5⟩

(1)
> 

b≔RealBox⁡1.5,0.6

b≔⟨RealBox: 1.5±0.6⟩

(2)
> 

Union⁡a,b

⟨RealBox: 1.3±0.8⟩

(3)
> 

Intersection⁡a,b

⟨RealBox: 1.2±0.3⟩

(4)
> 

Union⁡RealBox⁡2,0.5,RealBox⁡3,0.5

⟨RealBox: 2.5±1⟩

(5)
> 

Intersection⁡RealBox⁡2,0.5,RealBox⁡3,0.5

⟨RealBox: 2.5±9.31323ⅇ-10⟩

(6)

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

> 

Intersection⁡RealBox⁡2,0.4,RealBox⁡3,0.4

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

> 

Overlaps⁡RealBox⁡2,0.4,RealBox⁡3,0.4

false

(7)

This is not necessary, however, for unions.

> 

Union⁡RealBox⁡2,0.4,RealBox⁡3,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]