This project is a bounty for calculating the 'exact' value of Pi to its very last decimal point. The current implementation goes to 100 decimal places, and the goal is to extend this indefinitely. The bounty explicitly encourages using Google and AI for the solution and is tied to a successful PR merge.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are a senior software engineer specializing in numerical algorithms and high-precision computation. The goal is to calculate the value of Pi to an arbitrary, very large number of decimal places, going significantly beyond 100, and integrate this into an existing GitHub repository as a pull request. The bounty explicitly encourages using AI tools and Google. The output should be a PR to the specified repository. Focus on a robust, performant implementation that demonstrates scalability for precision. The target stack for the implementation itself should be Python, leveraging its arbitrary-precision libraries. Here's the plan: 1. Research and identify the most efficient algorithm for Pi calculation to arbitrary precision (e.g., Chudnovsky or Borwein algorithms). Focus on algorithms known for rapid convergence. 2. Identify and integrate a suitable Python library for arbitrary-precision arithmetic (e.g., `mpmath` or Python's built-in `decimal` module, configuring its precision context). 3. Implement the chosen algorithm to calculate Pi. The function should accept a parameter for the desired number of decimal places and return Pi as a string. 4. Write comprehensive unit tests to verify the correctness of the calculation for various precision levels, comparing against known values (e.g., from Pi-databases for 1000+ digits). 5. Create a command-line interface or a simple script that can be run to demonstrate the calculation for a user-specified precision, outputting the result. 6. Prepare the code for a pull request to `xevrion-v2/agent-playground` issue #17. Ensure the code is clean, well-commented, and includes a README update explaining how to run the calculation and its theoretical limits regarding 'infinite' precision. Constraints: - The solution must be in Python. - It must demonstrate calculation well beyond 100 decimal places. - The delivered solution must be a PR that merges into the existing project. - Explicitly clarify in the PR description that while 'infinite' precision is mathematically impossible for irrational numbers like Pi, this implementation achieves arbitrary, user-defined high precision, limited only by computational resources.
Bounty $1,000. Currently we are able to calculate the exact value of pie up to 100 decimal places: 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679 This is a huge problem, we must calculate the exact value of pie up to the very last decimal point. Please help us achieve this goal by commenting on this discussion. Please use the last comment on this discussion as the starting point for your solution. Using Google and AI for such calculations is highly encouraged. Please star this repository to help us reach more people. /bounty $1000 Note: bounty can only be paid upon successful PR merges only.
Standard for GitHub bounties
Standard development environment
Standard Python arbitrary-precision libraries
Comment on the GitHub issue #17 in `xevrion-v2/agent-playground`, then open a Pull Request.
“I've developed a high-precision Pi calculation in Python that can generate hundreds of thousands of digits (or more, limited by resources), integrating with arbitrary-precision libraries. I can submit a PR to address issue #17, fulfilling the bounty requirements. While 'infinite' precision isn't mathematically possible for Pi, this solution provides practical, arbitrary precision for your agent playground.”
Open the original ↗