158
Equality (ro-che.info)
submitted 4 months ago* (last edited 4 months ago) by barsoap@lemm.ee to c/science_memes@mander.xyz

you are viewing a single comment's thread
view the rest of the comments
[-] lowleveldata@programming.dev 42 points 4 months ago

Actually we don't know whether 2+3 equals to 3+2 without seeing the definition of the + operator

[-] FuglyDuck@lemmy.world 37 points 4 months ago* (last edited 4 months ago)

If

1 x 0 = 0

And

2 x 0 = 0

Then 1 = 2.

And this folks is why you don’t hire “math teachers” because he was a successful football coach. It took him way too long to realize this is why we don’t divide by zero, (more than a week, actually.)

[-] barsoap@lemm.ee 16 points 4 months ago
[-] lowleveldata@programming.dev 15 points 4 months ago
[-] barsoap@lemm.ee 5 points 4 months ago* (last edited 4 months ago)

Or signed integers because overflow is undefined. It could do the left-hand computation in two's complement and the right hand in sign-magnitude, leading to different results. Or, as it's undefined, it could brew you some coffee and serve it with an aspirin.

[-] Viking_Hippie@lemmy.world 2 points 4 months ago

That's decidedly unfun and headhurty for those of us less mathemstically inclined. Also so deep into the theoretical weeds that I'm not sure that "fact" applies..

[-] barsoap@lemm.ee 6 points 4 months ago* (last edited 4 months ago)

One night I dreamt about the new C standard. It was a tome of ten thousand pages, in dense, tiny, font, three columns of text on each page, and it was all headings and sub-headings interspersed with nothing but either "undefined" or "implementation-defined".

[-] zea_64@lemmy.blahaj.zone 2 points 4 months ago

C doesn't even guarantee a == a

this post was submitted on 28 Jun 2024
158 points (86.6% liked)

Science Memes

11068 readers
2836 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS