250
submitted 5 months ago by Jakylla@sh.itjust.works to c/xkcd@lemmy.world

cross-posted from: https://programming.dev/post/8653164


Transcript:

Cueball: Hey, check it out: e^π^−π is 19.999099979. That's weird.
Black Hat: Yeah. That's how I got kicked out of the ACM in college.
Cueball: ...what?

Black Hat: During a competition, I told the programmers on our team that e^π^−π was a standard test of floating-point handlers -- it would come out to 20 unless they had rounding errors.

Cueball: That's awful.
Black Hat: Yeah, they dug through half their algorithms looking for the bug before they figured it out.

Hover text:

Also, I hear the 4th root of (9^2^ + 19^2^/22) is pi.

top 16 comments
sorted by: hot top controversial new old
[-] lowleveldata@programming.dev 44 points 5 months ago* (last edited 5 months ago)

There's no way that I'd believe e^π^−π to be an integer without seeing a proof

[-] blargerer@kbin.social 29 points 5 months ago

e^iπ tricks you into thinking e is magic.

[-] piecat@lemmy.world 21 points 5 months ago

It.... Kinda is?

[-] marcos@lemmy.world 2 points 5 months ago* (last edited 5 months ago)

Nature has quite a special place for the basis of the natural logarithm.

[-] Shurimal@kbin.social 10 points 5 months ago

Not gonna lie, had to test it for myself, using emulated MK 61/54 calculator: https://f-droid.org/en/packages/com.cax.pmk.ext/

Got 19.999097. Rounding errors or a bug in the microcode, who knows.

[-] mack7400@lemmy.world 9 points 5 months ago

Makes me think that if there is a God, this would be an easter egg.

[-] sharkwellington@lemmy.world 5 points 5 months ago* (last edited 5 months ago)

I get that it's a comic but this doesn't feel like a conversation that would ever occur in real life. Granted I don't hang out with programmers or mathematicians so maybe it's more plausible than you would think.

[-] Wodge@lemmy.world 25 points 5 months ago

My kid is studying physics in university, and she comes home and tells me physics anecdotes which I don't understand, so I always reply "That's Numberwang!".

So I can see these types of conversations happening between math and programming types.

[-] voracitude@lemmy.world 5 points 5 months ago

That is a truly excellent response! Anyone in this thread who hasn't seen "That Mitchell & Webb Look" should go watch it - you're in for a treat.

[-] vinylshrapnel@lemmynsfw.com 3 points 5 months ago

Spin the board!

[-] MajorHavoc@programming.dev 25 points 5 months ago* (last edited 5 months ago)

would ever occur in real life

That's sort of part of the joke. ACM is the "Association for Computing Machinery" one of the biggest and oldest and nerdiest computer clubs.

ACM hosts all kinds of SIGs (special interest groups) - clubs dedicated to interest in (sometimes deeply esoteric) aspects of computer science. For a few of them, hand-coding a new specialized fast floating point calculation code during a contest could easily come up.

And ACM has a code of ethics, so it is technically possible to get kicked out.

So there's technically a situation where lying to a peer, on purpose, in a particularly mean context (such as a competition) about a floating point number computation - could actually get someone kicked out of ACM.

Edit: Additonal context that helps the joke - my experiences with ACM have all been super chill , relaxed and friendly. So "I got kicked out of ACM" is also a "you did what?!" setup for the joke.

[-] Ultragramps@lemmy.blahaj.zone 5 points 5 months ago

Thanks for the context on ACM saving me a search. I would like to add that I wouldn’t characterize it as ‘mean’ but moreso trolling them for being unaware of Gelfond’s Constant.

[-] kbal@fedia.io 11 points 5 months ago

It seems plausible enough to me. Many comp sci undergrads would be dimly aware that floating point arithmetic is notoriously difficult to get right and can often lead to surprising errors if you get it slightly wrong, and also dumb enough to believe that e^π^−π is exactly 20.

[-] Jakylla@sh.itjust.works 9 points 5 months ago

Comics are not only meant to present something that can happen IRL :P

That kind of trolls happen occasionally in IT, where not everybody know well about maths and physics, they may easily fall into these kind of traps by taking granted that the maths you gave is more trustful than computer code they wrote (usual kind of joke to make your friend understand that he what was doing something wrong or without understanding)

Also, in Uni, we were all little Satans, trying more to break others students works instead of trying to improve self (that was a true war among IT students). All means were used, this kind of troll (as depicted in this comics) to make the other loose time is truly expected

Classical "type Alt+F4 before saving your code to automatically fix bugs" kind of joke

[-] DrBob@lemmy.ca 4 points 5 months ago

Oh grad school man. Yes it would. I was also amazed that there would be people sitting at the bar who could read hieroglyphics. And random shit like that.

[-] Thoth19@lemmy.world 1 points 4 months ago

This is totally a conversation that would happen in real life. I've watched a friend of mine try to convince someone who had a bit much to drink that the primes are closed under multiplication for an hour. Absolutely hysterical

this post was submitted on 19 Jan 2024
250 points (97.7% liked)

xkcd

8084 readers
388 users here now

A community for a webcomic of romance, sarcasm, math, and language.

founded 1 year ago
MODERATORS