Open versus closed intervals
What’s the difference between open and closed intervals?
Related to notes/ Range — the difference between maximum and minimum values of a sequence.
Closed intervals #
The notation for closed intervals is [start, end]. In closed intervals, the endpoints are included.
For example represents all values from to , including and . It can also be written as .
Open intervals #
The notation for open intervals is (start, end). In open intervals the endpoints are
excluded.
For example, represents all values between and , but not including and . It can also be written as .
Mixing open and close interval notation #
- : includes , excludes
- : excludes , includes
Tags: