AccumBounds(min, max) (also AccumulationBounds()) is SymPy's closed
real interval <min, max> of the values an expression can take, for
example sin(oo) or limit(sin(x), x, oo). Arithmetic with numbers and
other bounds is interval arithmetic: AccumBounds(1, 2) + 3 is
AccumBounds(4, 5) and AccumBounds(-1, 2)^2 is AccumBounds(0, 4).
Comparisons decide when the bounds do, contains() tests membership and
intersection() intersects with bounds or a finite set.
Arguments
- min, max
The bounds; equal bounds give the value itself.
- a, b
Bounds;
ab_union()is SymPy'sAccumBounds.union()(base R hasunion()), andintersection()takes bounds or a finite set.