Skip to content

Ved-P/pi-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pi Calculator

Pi Calculator uses mutiple techniques to calculate the value of pi (approximately 3.14159265358979). The techniques are described below.

What techniques are used?

  • 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!

How can I run these methods?

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