Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.04 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.04 KB

Pi Generator

In time for π day 2021, here are 3 unique methods of generating pi! Feel free to use them at your leisure or send a few pull requests to add more.

Inspired by Matt Parker from Stand-up Maths

Generating Methods

  • infinite series generator: two different infinite series to approximate pi that converge at different rates
  • spigot: a very efficient algorithm used to calculate hex digits of pi
  • statistics generator: slightly inneficient method of using the probability of drawing a pair of cofactors on a specificly sized pair of die to extrapulate the number 6/(pi^2)

Plots

  • the statistics plot will plot the accuacy of the statistical generation of pi averaged over a number of computations

Additional Reading

Inspiration for the Project

The Spigot Algorithm

Pi Information