Almost π

Discussion thread for Almost π.

The series formula shows the sum variable running from 0 to n, but the code is only accepted if it runs from 0 to n-1.

1 Like

Hey @misho88 thanks for pointing that out!

The upper bound should actually be ∞ so I fixed that and made it clearer that the first n terms should be summed (and that the k=0 term counts as the first term). Not sure if it helps but the upper bound on the sum shouldn’t cause any more confusion.

1 Like