I understand that it's from 0 to rows and from 1 to rows, but which is including and which is excluding?
+5
A:
[ - including,
( - excluding
Example: [10, 15)
10, 11, 12, 13, 14
Example: (2, 4)
3
zdmytriv
2009-07-25 03:17:53
Note that in mathematical contexts, interval notation is always assumed to refer to a real interval, as opposed to the intervals of integers shown here. This can lead to confusion when a mathematician expects the interval (0, 1) to be a non-empty set.
2009-07-25 04:15:03
Yes you are right about real interval in math. I assumed he is talking about integers because he counts rows.
zdmytriv
2009-07-25 04:59:23
+1
A:
The [
denotes a closed interval (i.e. inclusive) and the )
denotes an open interval (i.e. exclusive). So [0, 10)
means 0 through 10, excluding 10.
Kevin Ballard
2009-07-25 03:18:14
+2
A:
The [ is inclusive, ) is exclusive. So everything from 0 to rows, including 0, but not rows.
Sometimes this syntax is used instead: [0, rows[
jalf
2009-07-25 03:18:38