Verified with CPython 3.13.3 on macOS arm64. Use a Python 3.13 virtual environment.
Install the recorded dependencies with python -m pip install -r requirements.txt.
From the extracted folder, run python -I SCRIPT.py using the filename in each listing caption.
Timings and the last digits of floating-point results may vary.
Listing 10.1 saves ch10_fig.pdf in your working directory.
Listing 18.1 intentionally reports an invalid argument on stderr.
