Brain Dump

Numeric Intervals

Tags
math

Specifies a range of values.

Round bracket notation excludes the end value, square bracket notation includes it.

Table 1: Examples of the difference between round and square bracket notation.
NotationMeaning
\( [0, 20] \)0,1,\ldots,19,20
\( (0, 20) \)1,2,\ldots,18,19
\( (0, 20] \)1,2,\ldots,19,20
\( [0, 20) \)0,1,\ldots,18,19