When a Correct π Formula Makes a Bad Algorithm
Leibniz’s series for π feels like a cheat code—until you try to turn “nth digit” into a real program with real error bounds and finite precision. This is a walkthrough of how 22/7, slow convergence, and floating-point limits reshape what “calculate π” actually means in code.
AINumerical Analysis
VineethJanuary 2, 2026