Slow π approximation

Write a function @slow_pi_approx(n)@ that given a non negative integer n
computes $4\sum_{k = 0}^n \frac{(-1)^k}{2k + 1}$ The returned value has
to be rounded to the ten thousandth by using the python function
round(_,4).

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T14:49:39.752Z

© Jutge.org, 2006–2026.
https://jutge.org
