https://www.icalculator.info/images/math/upper-lower-bounds-intervals-and-segments-8.png