"6 ÷ 2x" gets parsed as "6 / (2 * x)"
"6 ÷ 2 * x" gets parsed as "(6 / 2) * x"
All that's done in the equation in the article is having a pair of brackets instead of a variable, but the result is the same to my brain.
"6 ÷ 2x" gets parsed as "6 / (2 * x)"
"6 ÷ 2 * x" gets parsed as "(6 / 2) * x"
All that's done in the equation in the article is having a pair of brackets instead of a variable, but the result is the same to my brain.
Edit: I'm probably wrong about precedence for 2x, which should be stronger. Which would leave 2(1+2) still really ambiguous. I guess the true lesson here is to always parenthesize explicitly or use over/under notation,
But this is wrong! Division and multiplication have the same precedence and left-to-right application order!
Hence, "6 ÷ 2x" should be parsed as "(6 ÷ 2) * x", which I admit is a bit confusing, so you probably should write out either the parenthesis or the multiplication. But, just because the notation is confusing doesn't mean the rules no longer apply.
Consider the expression "h-bar is h over 2 pi". That's "ħ = h/2π", and is definitely not the same as "(h/2) * π". This is because of the convention that you write the numerator terms and then the denominator terms. That is, if you wanted "h/2 * π" then you would tend to write it hπ/2.
As another example, consider Schrödinger's equation, with (-ħ²/2m) * Ψ(r, t). There too the 'm' is well-understood as being in the denominator.
My intuitions (astrophysics/finance background) say multiplication-by-juxtaposition is higher-precedence than multiplication-by-symbol, so "x/y(1+y)" would be "x/(y(1+y))"; interpreting it as "(x/y)(1+y)" seems wrong.
Then again, "x/y*(1+y)" already looks wrong. The solidus is too powerful. I'd write "(x/y)(1+y)" explicitly.