this post was submitted on 17 Jul 2024
3 points (100.0% liked)

Programmer Humor

37499 readers
483 users here now

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

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] driving_crooner@lemmy.eco.br 3 points 1 year ago (3 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.

[–] HatchetHaro@lemmy.blahaj.zone 0 points 1 year ago* (last edited 1 year ago) (1 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.

[–] driving_crooner@lemmy.eco.br 2 points 1 year ago (1 children)

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

[–] leverage@lemdro.id 1 points 1 year ago

You can encode base 2 as base 10, I don't think anyone is saying it exists in binary form.

[–] LodeMike@lemmy.today 0 points 1 year ago (1 children)

Yes that's why they specified pi.

[–] kogasa@programming.dev 0 points 1 year ago (1 children)

Still not enough, or at least pi is not known to have this property. You need the number to be "normal" (or a slightly weaker property) which turns out to be hard to prove about most numbers.

[–] CanadaPlus@lemmy.sdf.org 0 points 1 year ago* (last edited 1 year ago) (1 children)

Wikipedia for normal numbers, and for disjunctive sequences, which is the slightly weaker property mentioned.

[–] barsquid@lemmy.world 0 points 1 year ago (1 children)

"Nearly all real numbers are normal (basically no real numbers are not normal), but we're only aware of a few. This one literally non-computable one for sure. Maybe sqrt(2)."

Gotta love it.

[–] CanadaPlus@lemmy.sdf.org 1 points 1 year ago* (last edited 1 year ago)

We're so used to dealing with real numbers it's easy to forget they're terrible. These puppies are a particularly egregious example I like to point to - functions that preserve addition but literally black out the entire x-y plane when plotted. On rational numbers all additive functions are automatically linear, of the form mx+n. There's no nice in-between on the reals, either; it's the "curve" from hell or a line.

Hot take, but I really hope physics will turn out to work without them.

[–] fubbernuckin@lemmy.world 0 points 1 year ago (1 children)

If it's infinite without repeating patterns then it just contain all patterns, no? Eh i guess that's not how that works, is it? Half of all patterns is still infinity.

[–] OhNoMoreLemmy@lemmy.ml 0 points 1 year ago (1 children)

No. 1011001110001111... (One 1, one 0, two 1s, two zeros....) Doesn't contain repeating patterns. It also doesn't contain any patterns with '2' in it.

But pi is believed to be normal. https://en.m.wikipedia.org/wiki/Normal_number

So it should contain all finite patterns an infinite number of times.

[–] Ultraviolet@lemmy.world 1 points 1 year ago

However, as the name implies, this is nothing special about pi. Almost all numbers have this property. If anything, it's the integers that we should be finding weird, like you mean to tell me that every single digit after the decimal point is a zero? No matter how far you go, just zeroes forever?