Snazz@lemmy.worldtoShowerthoughts@lemmy.world•Irrational numbers are an infinite source of information.
31·
4 days agoHow you express something absolutely does change the amount of information in the message. That’s the foundation of compression.
Bitmap image files tend to be larger than png files, even when they both represent the same image.
1.41421… can be thought of as an expanded form of sqrt(2). In this case, the expansion is to an infinite number of digits.
There are only 4.29 billion possible values of an int32, so even if you used 2 lines for each case, it’d still be under 10 billion lines of code
bool isOdd(int num) { if (num == 1) { return true; } if (num == 2) { return false; } if (num == 3) { return true; } … }