1117
you are viewing a single comment's thread
view the rest of the comments
[-] dandroid@dandroid.app 21 points 1 year ago

NaN would be something that isn't toilet paper. So I'm gonna say a picture of a whole rotisserie chicken on the toilet paper bar.

[-] MotoAsh@lemmy.world 0 points 1 year ago* (last edited 1 year ago)

It gets funner when it's a value that actually is a complex number with an "imaginary" component, but gets represented by NaN because the real value doesn't make sense by itself. In reality, imaginary components are extremely critical for some equations and are totally valid.

I wish I remembered my math well enough to have one off the top of my head, but I don't use it often enough... IIRC, it's even important for magnetics, let alone more complex physics, so it does come up in practice quite often. I think there's even a fundamental part related to derivatives, but yea, don't exercise math enough. Might be misremembering.

this post was submitted on 05 Oct 2023
1117 points (97.0% liked)

Programmer Humor

32155 readers
212 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS