Pi Calculator uses mutiple techniques to calculate the value of pi (approximately 3.14159265358979). The techniques are described below.
- Momentum: A method that uses the Law of Conservation of Momentum to calculate pi. Technique by Grant Sanderson (3Blue1Brown).
- Randomize: A method that uses the random function from the Math class to calculate pi. Technique by Joma (Joma Tech).
More methods will be coming soon!
To run these methods, first download Java in case you have not. Then, download these files into a directory and run the following commands:
javac *.java
java PiCalculator