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
Union( a, b )
Intersection( a, b )
NonNegativePart( b )
a
-
RealBox object
b
precopt
(optional) equation of the form precision = n, where n is a positive integer
There are two set-theoretic operations defined on RealBox objects.
the union of the RealBox objects a and b
the intersection of the RealBox objects a and 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.
a≔RealBox⁡1.0,0.5
a≔⟨RealBox: 1±0.5⟩
b≔RealBox⁡1.5,0.6
b≔⟨RealBox: 1.5±0.6⟩
Union⁡a,b
⟨RealBox: 1.3±0.8⟩
Intersection⁡a,b
⟨RealBox: 1.2±0.3⟩
Union⁡RealBox⁡2,0.5,RealBox⁡3,0.5
⟨RealBox: 2.5±1⟩
Intersection⁡RealBox⁡2,0.5,RealBox⁡3,0.5
⟨RealBox: 2.5±9.31323ⅇ-10⟩
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
This is not necessary, however, for unions.
Union⁡RealBox⁡2,0.4,RealBox⁡3,0.4
⟨RealBox: 2.5±0.9⟩
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[Contains]
RealBox[Overlaps]
RealBox[Predicates]
Download Help Document