Skip to main content

Interval

Represents a closed interval [a, b] of real numbers.

Symbols

NameDescription
=Assignment operator for Interval.

Members

NameDescription
centerReturns the center (mid-point) of the interval.
containsChecks if the interval contains the given value.
half_widthReturns the half-width of the interval.
lowerReturns the lower bound of the interval.
upperReturns the upper bound of the interval.
widthReturns the width of the interval.