Skip to content

feat: add Pi spigot algorithm - #1589

Open
alexdev8930 wants to merge 1 commit into
TheAlgorithms:masterfrom
alexdev8930:add-pi-spigot
Open

alexdev8930 wants to merge 1 commit into
TheAlgorithms:masterfrom
alexdev8930:add-pi-spigot

Conversation

@alexdev8930

Copy link
Copy Markdown

Description of Change

Adds a Rabinowitz-Wagon spigot algorithm that generates 42 decimal digits of Pi using integer arithmetic without floating-point calculations.

The program includes comments explaining the algorithm and self-tests for the output format and first digits of Pi.

References

None.

Checklist

  • Added description of change
  • Added file name matches the file name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Searched previous suggestions before making a new one
  • I acknowledge that all my contributions will be made under the project's license.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant