rockerface 🇺🇦 ( @rockerface@lemm.ee ) English117•1 year agoAs a software developer, the less ambiguous your notation is, the better it is for everyone involved. Not only will I use brackets, I’ll split my expression into multiple rows and use tabs to make it as readable as humanly possible. And maybe throw a comment or 2 if there’s still some black magic involved
penquin ( @penquin@lemm.ee ) English3•1 year agoYou’re a good human being.
stebo ( @stebo02@lemmy.dbzer0.com ) English3•1 year agoOk but that’s unrelated to putting some numbers and operations in a calculator. No one is going to proofread that. If anything, you simply calculate it again.
neidu2 ( @neidu2@feddit.nl ) English1•1 year agoAs someone who used to code in Lisp, I’m all for excessive paranthesis use.
unexposedhazard ( @unexposedhazard@discuss.tchncs.de ) English18•1 year agoAlso works if you dont trust yourself with correctly ordering your operations.
Qkall ( @Qkall@lemmy.ml ) English12•1 year ago PoisonedPrisonPanda ( @PoisonedPrisonPanda@discuss.tchncs.de ) English4•1 year agoOk man. Wtf did I just watch…
I get it. We are here on the somehow dark side of the internet…
But THIS… without any context. i mean. Im questioning live here man. What do you want to express with that?
janNatan ( @janNatan@lemmy.ml ) English5•1 year agoI’m pretty sure it’s just a reference to when the kid types ))<>((
Btw, it’s not from the dark side of the Internet. This was a very popular video at the time.
trslim ( @trslim@pawb.social ) English1•1 year agoMy husband showed me that video last night. It was very strange.
Qkall ( @Qkall@lemmy.ml ) English2•1 year agoSomehow that clip is better than the fairly odd movie. I don’t think I could recommend it… But I think of the clip posted all the time. It’s so weird 😂. Some how they figured out creepy, funny, and somehow wholesome at once.
lolcatnip ( @lolcatnip@reddthat.com ) English5•1 year agoI’ve never seen a calculator that had bracket keys but didn’t implement the conventional order of operations.
But anyway, I’m on Team RPN.
masterspace ( @masterspace@lemmy.ca ) English6•1 year agohttps://plus.maths.org/content/pemdas-paradox
Even two casios won’t give you the same answer:
https://plus.maths.org/content/sites/plus.maths.org/files/articles/2019/pemdas/calculators.png
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 ( @SmartmanApps@programming.dev ) English2•1 year agoThere’s no pemdas paradox, just people who have forgotten the order of operations rules
Even two casios won’t give you the same answer:
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.
lolcatnip ( @lolcatnip@reddthat.com ) English2•1 year agoAh, 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.
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 ( @SmartmanApps@programming.dev ) English1•1 year agoA 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 ( @lolcatnip@reddthat.com ) English1•1 year agoI’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 ) English1•1 year agoI’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).
isolatedscotch ( @isolatedscotch@discuss.tchncs.de ) English5•1 year agomy dumb ass reading this: “Team rock paper nscissors”
lolcatnip ( @lolcatnip@reddthat.com ) English1•1 year agoRTS = rock taper scissors
FPS = frock paper scissors
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 ( @SmartmanApps@programming.dev ) English1•1 year agoI’ve never seen a calculator that had bracket keys but didn’t implement the conventional order of operations.
I’ve seen plenty
EunieIsTheBus ( @EunieIsTheBus@feddit.de ) English4•1 year agoI recall that there is a myriad of memes of the form ‘what is 4-2*3’ under which there is always a never ending discussion of confidently incorrect dumbasses denying the existence of the multiplication before addition rule.
So your suspicion is at least not unreasonable
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 ( @SmartmanApps@programming.dev ) English2•1 year ago
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 ( @SmartmanApps@programming.dev ) English3•1 year agoUnfortunately 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.
EmrysOfTheValley ( @EmrysOfTheValley@beehaw.org ) English2•1 year agoIt is also frustrating when different calculators have different orders of operations and dont tell you.
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 ( @SmartmanApps@programming.dev ) English4•1 year agoIt is also frustrating when different calculators have different orders of operations and dont tell you.
Yeah, but to be fair most of them do tell you the order of operations they use, they just bury it in a million lines of text about it. If they could all just check with some Maths teachers/textbooks first then it wouldn’t be necessary. Instead we’re left trying to work out which ones are right and which ones aren’t. Any calculator that gives you an option to switch on/off “implicit multiplication”, then just run as fast as you can the other way! :-)
ArcticAmphibian ( @ArcticAmphibian@lemmus.org ) English2•1 year ago$((A+B))
7heo ( @7heo@lemmy.ml ) English2•1 year ago(> (explicit) (implicit))
Kowowow ( @Kowowow@lemmy.ca ) English2•1 year agoOoh I love brackets
survivalmachine ( @survivalmachine@beehaw.org ) English1•1 year agoMy calculator uses a stack instead of brackets. #RPN4Life