Re:GCD and the magic of subtraction
by quietbritishjim on Tuesday August 25, 2020 @06:44AM
(#24269927)
In your examples, it's not the brackets signifying the multiplication. It's the adjacency that signifies the multiplication (as in e.g. 3x) and in they happen to need brackets to highlight the precendence which would be lost in e.g. 3x + 5.
The notation of the article logically follows because e.g. (4) = 4 but using that as a "cheat" to enable multiplication of numeric literals using adjacency is very rare I think.
Re:GCD and the magic of subtraction
by thaumasiotes on Tuesday August 25, 2020 @06:47AM
(#24269956)
No, it's not rare. It's still quite common when you have people manipulating literal numbers. The literal numbers are what's rare.
You say it's not rare, but I can't remember ever seeing it before reading this article.
Likely because you haven't encountered it since junior high school. It's not uncommon notation in pre-algebra and occasionally beginning algebra.
Re:GCD and the magic of subtraction
by roelschroeven on Tuesday August 25, 2020 @11:19AM
(#24272230)
Yes, of course, I do know that. It's not what I meant.
Suppose we expand that first example. I would write: 3(x + 5) = 3x + 3⋅5 The notation I'm talking about writes: 3(x + 5) = 3x + 3(5)
It's that 3(5) instead of 3⋅5 I'm talking about.
It is used particularly in things like 3(x + 5) or (a + b)(a - b).