@puniko @volpeon @enigmatico @maddiefuzz people do get taught to follow the strict PEMDAS order when using LALR grammars.
Follow

@puniko According to PEMDAS, it's 6/2(2+1)=6/2(3)=6/6=1. Or alternatively: 6/2(2+1)=6/(4+2)=6/6=1. The parenthesis goes first, including the 2, as the first expression is the same as 6/(4+2).

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml