Skip to content

this repo implements Pi using infinite series algorithms

License

Notifications You must be signed in to change notification settings

lukasjoc/pi-series

Repository files navigation

pi-series

this repo implements Pi using infinite series algorithms

Each language defines 2 ways of calculating Pi:

  • Gregory-Leibnitz-Series(GLS) (4/1 - 4/3 + 4/5 - 4/7 + 4/9...)
  • Nilakantha-Series(NKS) (3+4/(234) - 3+4/(456) + 3+4/(678) ...)

Then you run both and print them.

The limit should always be 100 and a constant