From edc854923700457647e1c2f87198449076b12e43 Mon Sep 17 00:00:00 2001 From: Peter Norvig Date: Thu, 19 Mar 2026 14:39:54 -0700 Subject: [PATCH] Fix typo and update condition in simulation function --- ipynb/Mean Misanthrope Density.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipynb/Mean Misanthrope Density.ipynb b/ipynb/Mean Misanthrope Density.ipynb index 07a3bf8..846ab78 100644 --- a/ipynb/Mean Misanthrope Density.ipynb +++ b/ipynb/Mean Misanthrope Density.ipynb @@ -760,7 +760,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Let's measure the deltas for the simulation results (and the `estimated_sensity` results) compared to the actual `density` results:" + "Let's measure the deltas for the simulation results (and the `estimated_density` results) compared to the actual `density` results:" ] }, { @@ -925,7 +925,7 @@ "def simulate_archery(previous_arrows=()) -> int:\n", " \"\"\"Simulate the archery tournament and return the number of arrows fired.\"\"\"\n", " arrow = random_arrow()\n", - " if any(abs(arrow) > distance(a) for a in previous_arrows):\n", + " if any(distance(arrow) > distance(a) for a in previous_arrows):\n", " return len(previous_arrows) + 1\n", " else:\n", " return simulate_archery([*previous_arrows, arrow])"