Pi (divided by 4) can be approximated by the following infinite series:
pi/4 = 1 - 1/3 + 1/5 - 1/7 + ...
For a given number of terms (n), return the difference between the actual value of pi and this approximation of the constant.
Also, try Problem 2909, a slightly harder variant of this problem.
What is the distance from point P(x,y) to the line Ax + By + C = 0?
209 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
138 Solvers
Simple equation: Annual salary
3407 Solvers
1243 Solvers
229 Solvers
Problem Tags