Obelix@feddit.org to Technology@lemmy.worldEnglish · 27 days agoA fake Facebook event disguised as a math problem has been one of its top posts for 6 monthswww.engadget.comexternal-linkmessage-square142fedilinkarrow-up1229arrow-down125
arrow-up1204arrow-down1external-linkA fake Facebook event disguised as a math problem has been one of its top posts for 6 monthswww.engadget.comObelix@feddit.org to Technology@lemmy.worldEnglish · 27 days agomessage-square142fedilink
minus-squareRobust Mirror@aussie.zonelinkfedilinkEnglisharrow-up4arrow-down1·26 days agoIt’s so we don’t have to spam brackets everywhere 9+2-1+6-4+7-3+5= Becomes ((((((9+2)-1)+6)-4)+7)-3)+5= That’s just clutter for no good reason when we can just say if it doesn’t have parentheses it’s left to right. Having a default evaluation order makes sense and means we only need parentheses when we want to deviate from the norm.
minus-square💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.devlinkfedilinkEnglisharrow-up1·3 hours ago It’s so we don’t have to spam brackets everywhere No it isn’t. The order of operations rules were around for several centuries before we even started using Brackets in Maths. ((((((9+2)-1)+6)-4)+7)-3)+5 It was literally never written like that we only need parentheses when we want to deviate from the norm That has always been the case
It’s so we don’t have to spam brackets everywhere
9+2-1+6-4+7-3+5=
Becomes
((((((9+2)-1)+6)-4)+7)-3)+5=
That’s just clutter for no good reason when we can just say if it doesn’t have parentheses it’s left to right. Having a default evaluation order makes sense and means we only need parentheses when we want to deviate from the norm.
No it isn’t. The order of operations rules were around for several centuries before we even started using Brackets in Maths.
It was literally never written like that
That has always been the case