I already posted this in the Discord but I feel like this is a better place to put this so I'm reposting it here
So in the section with the random walk, you say any given pixel has 8 neighbors. This is sort of correct, but it really depends on what you define as a neighbor. You could define a neighbor as an orthogonally adjacent square and that would be just as correct
This particular code snippet is wrong:
// 1 and 3 are stored in the array twice, making them more likely to be picked than 2.
let stuff = {1, 1, 2, 3, 3};
// Picking a random element from an array
let value = random(stuff);
print(value);
You have to use square brackets, also I would use console.log
but if you want you can use print
it doesn't really matter
In I.4 you just refer to a simulation of monkeys that doesn't even exist. Like...you never even introduced it
Then there's this paragraph:
The y=x
graph is actually wrong. The probability of any given value being picked is actually zero. What this graph actually is is what's called a "probability density function" (PDF). It doesn't show what the probability is of any one value being picked, it just shows the proportions of those probabilities. That's still not an entirely accurate description but you get what I mean
The beginning of chapter 1 still has the old division scheme for the book: the first 5 chapters are about physics, the next 3 about complexity, and the final 2 about intelligence. I'm not saying this is wrong, but especially with swapping chapters 5 and 6, I feel like you're moving to a different system: the first 6 chapters about physics, and the final 4 about...other things
Chris Sears posted a thing:
Puts on math teacher hat
From the introduction: "Technically speaking, the random number picked can never be 4.0, but rather the highest possibility is 3.999999999 (with as many 9s as there are decimal places)..." Since 3.9999..... = 4.0, you may want to sidestep this part. One possible edit could be: "Technically speaking, the random number picked can never be exactly 4, but numbers like 3.9, 3.99, or 3.999999999 are possible."
Is there a GitHub repository for the book? Sorry I missed the live stream where you talked about the book. I feel like a student who missed class.
Takes off teacher hat and puts on dunce cap
This is the famous 0.99999... = 1 theorem. In case you haven't seen it before, here is an algebraic proof:
Let's call 0.99999... X
X = 0.99999...
Multiply by 10
10X = 9.99999...
Subtract
9X = 9
Divide by 9
X = 1
And here's an intuitive proof:
True thing about the real numbers: take two numbers. Unless they're the same, there must be a number greater than one and less than the other (e.g. take the average)
Can you name a number which is in between 0.99999... and 1? You can't, it's impossible. From the above, it thus logically follows that 0.99999... and 1 are the same
Finally, not a mistake but an idea (not saying you should do this but I just feel like it makes sense): what if you call the intro chapter chapter 0? Everything in code starts at 0 anyway, so I feel like this would be a good idea