题面
The series used to approximate , , converges extremely slowly. Even after 10,000 terms have been evaluated, the approximation is correct only to four digits. Using this technique to compute to the limit of floating-point precision would be impractical. The following series converges much more quickly:
Each term can be divided into three parts, as suggested by the parentheses in the formula. Figure out how each part changes from term to term and use this information to write a program that calculates to the limit of floating-point accuracy. Display your answer with 10 decimal places.