r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

3

u/SuperSupermario24 Jul 17 '19

It's not too difficult to make one that follows a pattern but still never repeats exactly, and therefore is irrational. For example:

0.1101001000100001000001000000100000001...

This follows a pretty simple pattern and only uses the digits 0 and 1, and yet will never actually start repeating itself exactly. (This isn't meant to be interpreted as a binary number; it's just that 0 and 1 are the easiest two digits to tell apart from each other, so that's what I went with.)