this post was submitted on 17 Jul 2024
308 points (94.0% liked)

Programmer Humor

32371 readers
513 users here now

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

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 86 points 3 months ago (30 children)

That's not how it's works. Being "infinite" is not enough, the number 1.110100100010000... is "infinite", without repeating patterns and dosen't have other digits that 1 or 0.

[–] [email protected] 37 points 3 months ago* (last edited 3 months ago) (6 children)

to be fair, though, 1 and 0 are just binary representations of values, same as decimal and hexadecimal. within your example, we'd absolutely find the entire works of shakespeare encoded in ascii, unicode, and lcd pixel format with each letter arranged in 3x5 grids.

[–] [email protected] 34 points 3 months ago (4 children)

Doesn't, the binary pattern 10101010 dosen't exists on that number, for example.

[–] [email protected] 5 points 3 months ago (1 children)
[–] [email protected] 14 points 3 months ago

No, because you can't mathematically guarantee that pi contains long strings of predetermined patterns.

The 1.101001000100001... example by the other user was just that - an example. Their number is infinite, but never contains a 2. Pi is also infinite, but does it contain the number e to 100 digits of precision? Maybe. Maybe not. The point is, we don't know and we can't prove it either way (except finding it by accident).

load more comments (2 replies)
load more comments (3 replies)
load more comments (26 replies)