Calculate PiFebruary 26, 2024 · 3 min readCalculating Pi with code π=4⋅(1−13+15−17+...)\pi = 4 \cdot (1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + ...)π=4⋅(1−31+51−71+...)