Ah, I wasn’t thinking of calculators that let you type in a full expression. When I was in school, only fancy graphing calculators had that feature. A typical scientific calculator didn’t have juxtaposition, so you’d have to enter 6÷2(1+2) as 6÷2×(1+2), and you’d get 9 as the answer because ÷ and × have equal precedence and just go left to right.
Comment on ))<>((
masterspace@lemmy.ca 7 months agololcatnip@reddthat.com 7 months ago
SmartmanApps@programming.dev 7 months ago
A typical scientific calculator didn’t have juxtaposition, so you’d have to enter 6÷2(1+2) as 6÷2×(1+2)
That’s not true
you’d get 9 as the answer because ÷ and × have equal precedence and just go left to right
Well, more precisely you broke up the single term 2(1+2) into 2 terms - 2 and (1+2) - when you inserted the multiplication symbol, which sends the (1+2) from being in the denominator to being in the numerator. Terms are separated by operators and joined by grouping symbols.
lolcatnip@reddthat.com 7 months ago
I’m not sure what you’re getting at with your source. I’m taking about physical, non-graphic scientific calculators from the 1990s.
SmartmanApps@programming.dev 7 months ago
I’m taking about physical, non-graphic scientific calculators from the 1990s.
Yep, exact same as the calculator in the linked thread. The expression entered was 6/2(1+2).
SmartmanApps@programming.dev 7 months ago
There’s no pemdas paradox, just people who have forgotten the order of operations rules
The one on the right is an old model. As far as I’m aware Casio no longer make any models that still give the wrong answer.
Image