" if you have x + y * z in any programming language, its the...

  1. 73 Posts.
    lightbulb Created with Sketch. 1
    " if you have x + y * z in any programming language, its the same as y * z + x"
    That is not true. APL has no precedence that isn't explicit and evaluates from Right to Left, so 4x4+20 would equal 96.

    Some go on as if PEDMAS etc are axioms of mathematics, carved in stone and handed down to Moses. They are just handy conventions, as other have noted, that simplify writing equations.

    Full precedence is difficult, the highest should probably be unary negation then exponentiation etc.
    Example what is -2^2 (is it two squared negated (-4) or minus two squared (4))

 
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.