Please enjoy these approximations of π, which the program calculated using algorithms based on infinite sums or products. The larger the number you enter, the more times the program runs, and the closer each result approaches to π. And move your cursor around a bit, too. You will see random flashing colors.

Algorithm 1: π = 4 * (1 - 1/3 + 1/5 - 1/7 ...)

Algorithm 2: π = 4 * (1 - 1/3 + 1/5 - 1/7 ...)

Algorithm 3: π = √ (6 * (1/12 + 1/22 + 1/32 + 1/42...) )

Algorithm 4: π = √ (8 * (1/12 + 1/32 + 1/52 + 1/72...) )

Algorithm 5: π = 2 * (2/1 * 2/3 * 4/3 * 4/5 * 6/5 ...) )