• rbesfe@lemmy.ca
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    1
    ·
    10 months ago

    Brackets and a comma like that indicate a range, not just a list of 2 values

    • BigDanishGuy@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      10 months ago

      But those are parentheses, are they not? I was taught intervals using square brackets and semicolon. While parentheses are used for coordinates and tuples. The square brackets indicates inclusion of the boundary number.

      Ie. the statement "2

      Update: apparently either lemmy or my app (boost) wasn’t that excited for my less than signs, and just skipped the rest of the comment. And here I had spent time copying both “less than or equal to” and infinity signs, since my keyboard doesn’t seem to have them… For the time being pls disregard the comment above, while I figure out how to write math on lemmy.

      • rbesfe@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        10 months ago

        Parentheses (also just called brackets here in North America, where the English language comes to die) are used to show that the listed values are not included in the range. They’re always used for infinity since infinity isn’t a real number.

        So 0 to infinity would be [0, ∞). I think the semicolon vs comma is a regional style thing.