Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.0 DD-00006-010
5.4.2 Set operations
interval<T> hull(const interval<T>& a, const interval<T>& b);
interval<T> intersection(const interval<T>& a, const interval<T>& b);
interval<T> between(const interval<T>& a, const interval<T>& b);

hull(const interval<T>& a, const interval<T>& b)


Returns an interval that contains both A and B .

intersection(const interval<T>& a, const interval<T>& b)


Returns an interval that is the intersection of A and B .

between(const interval<T>& a, const interval<T>& b)


Return an interval, that is between the two given intervals. If the given intervals overlap or are unbounded the resulting interval will be ∅  .