Comment on gatekeeping
rbesfe@lemmy.ca 11 months agoBrackets and a comma like that indicate a range, not just a list of 2 values
Comment on gatekeeping
rbesfe@lemmy.ca 11 months agoBrackets and a comma like that indicate a range, not just a list of 2 values
BigDanishGuy@sh.itjust.works 11 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
pokemaster787@ani.social 11 months ago
It’s likely just you were taught a different notation. Personally I was taught (x, y) can mean both coordinates x and y or a range from x-y (non inclusive), just depends on context which it is. Brackets like [x,y] I was taught are for inclusive ranges (i.e., x and y are included in the range)
BigDanishGuy@sh.itjust.works 11 months ago
So, what I was trying to do was use less than signs… Now I’ll just write it out instead.
The nomenclature I was taught for intervals used square brackets. But both inclusive and exclusive. If the bracket opens toward the number it’s inclusive, if the bracket opens away from the number it’s excluded.
The example I tried to use was as follows, 2 less than x and x less than or equal to 5, would be written as x = ]2;5]. While 2 less than x, and x less than 5 would be x = ]2;5[, and 2 less than or equal to x, and x less than or equal to 5, would be x = [2;5]
But it is just nomenclature, but as any other kindergartener I always thought it was universal. Imagine my surprise when I discovered that some people uses a period for decimals and not a comma. And that English speakers uses the words millions, billions, and trillions but skips milliards, billiards, and trilliards. Meaning that translating between English and Daniah, you’d need to be keenly aware of the differences - otherwise you’d might try convincing a Dane that there are 1000x more people on earth.
rbesfe@lemmy.ca 11 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.