lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Jan 13, 2021 at 12:21 PM bel wrote:
Wikipedia (https://en.wikipedia.org/wiki/Fraction#Complex_and_compound_fractions):
"So 5/10/20/40 is not a valid mathematical _expression_, because of multiple possible interpretation."

Yes, "a/b/c/d" is not a valid complex fraction, so an engineer should not try to interpret it this way.
But "a÷b÷c÷d" is well defined, because division and multiplication are executed from left to right, every schoolkid knows it.