Sorry about that, there was an extra square root in there. There should be a total of 9, not 10, with the last being the square root of 2+1. As for why it converges to pi, it is a variation of Viéte's formula, which can be manipulated into an approximation of pi. There, I simply posted a version of Viéte's formual when n (a particular variable in the function) is 8.
I'm still surprised no one has mentioned this classic
emphasis added
greenleaf800073 wrote:
Um, what language is that
greenleaf800073 wrote:
Fixed it:
LB wrote:
[random stuff about bizarre C]
It is C89. If your compiler can't handle it, your compiler is non-standard.
Also, I still seem to have not learned that no one will ever bother to click a link I provide, answering all your questions and more. That code is an update to a famous IOCCC winner.
I'm not bothering to post a link this time. Instead, I'm going to get a mirror and eat some delicious apple pi.
Austin J said that everyone was reported. Was he just misreading something?
I'm not sure if this specific thread was affected, but I remember spoonlicker had a brief reporting frenzy on here -- and the admin must've cleared the reports since then.