• themeatbridge@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    5
    ·
    11 months ago

    Depends on whether you’re a computer or a mathematician.

    2(2+2) is equivalent to 2 x (2+2), but they are not equal. Using parenthesis implicitly groups the 2(2+2) as part of the paretheses function. A computer will convert 2(4) to 2 x 4 and evaluate the expression left to right, but this is not what it written. We learned in elementary school in the 90s that if you had a fancy calculator with parentheses, you could fool it because it didn’t know about implicit association. Your calculator doesn’t know the difference between 2 x (2+2) and 2(2+2), but mathematicians do.

    Of course, modern mathematicians work primarily in computers, where the legacy calculator functions have become standard and distinctions like this have become trivial.

      • themeatbridge@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        11 months ago

        I’m old but I’m not that old.

        The author of that article makes the mistake of youth, that because things are different now that the change was sudden and universal. They can find evidence that things were different 100 years ago, but 50 years ago there were zero computers in classrooms, and 30 years ago a graphing calculator was considered advanced technology for an elementary age student. We were taught the old math because that is what our teachers were taught.

        Early calculators couldn’t (or didn’t) parse edge cases, so they would get this equation wrong. Somewhere along the way, it was decided that it would be easier to change how the equation was interpreted rather than reprogram every calculator on earth, which is a rational decision I think. But that doesn’t make the old way wrong, anymore than it makes cursive writing the wrong way to shape letters.

    • A computer will convert 2(4) to 2 x 4

      Only if that’s what the programmer has programmed it to do, which is unfortunately most programmers. The correct conversion is 2(4)=(2x4).

      in the 90s that if you had a fancy calculator with parentheses, you could fool it because it didn’t know about implicit association. Your calculator doesn’t know the difference between 2 x (2+2) and 2(2+2), but mathematicians do

      Actually it’s only in the 90’s that some calculators started getting it wrong - prior to that they all gave correct answers.