A lot of ways to run the same way of calculating pi. Some of them are dumb.
-
Updated
Nov 29, 2024 - Python
The number π (/paɪ/) is a mathematical constant. Originally defined as the ratio of a circle's circumference to its diameter, it now has various equivalent definitions and appears in many formulas in all areas of mathematics and physics. It is approximately equal to 3.14159. It has been represented by the Greek letter "π" since the mid-18th century, though it is also sometimes spelled out as "pi". It is also called Archimedes' constant. Wikipedia.
If you are up for the challenge, this topic contains repositories with code to solve for Pi.
A lot of ways to run the same way of calculating pi. Some of them are dumb.
Calculate Pi using the Leibniz formula.
Examples from Intel Fortran coarray tutorial
A pi calculator in Lua using the Leibniz formula
Calculating PI Value In Different Parallel Framework.
A simple CLI for calculating Pi.
Calculate pi using BBP formula and GMP library. Choose the desired number of digits and the base of your number system.
Calculates π using Monte Carlo technique with a variety of parallelization protocols
Each six numbers of digits represent a hex color code.
A couple of algorithms I implemented in order to not get rusty with python.
Based on Joma Tech's favorite interview question
Using python simulations (monte carlo) for calculating pi
Created by github
Released March 14, 1592