My calculator says -2² = -4
That’s correct
Unfortunately some calculators, such as Google’s will ignore your brackets and put in their own anyway. You just gotta find a decent calculator in the first place.
Either ‐(n²) or (-n)². Order of operations shouldn’t be some sort of gotcha to trick people into misinterpreting you
It isn’t. With ‐(n²), n² is already a single term, so the brackets aren’t needed.
I’ve never seen a calculator that had bracket keys but didn’t implement the conventional order of operations.
I’ve seen plenty
This is why every calculator should be a RPN calculator
No, this is why programmers should (re)learn the order of operations rules before writing a calculator.
I just used the calc on window… it cannot respect order of operation
Yeah, I’ve tried several times to get Microsoft to fix their calculators. I’ve given up trying now - eventually you have to stop banging your head against the wall.
Math should be just as deterministic as programming, but it’s not in some situations
Maths is 100% deterministic for order of operations. The issue is people not following all of the rules. Order of operations thread index
As a Maths teacher, almost daily 😂
Such as?