Skip to content

baronalloway/MonteCarloMethod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monte Carlo Method

This program uses the Monte Carlo Method to calculate pi. https://en.wikipedia.org/wiki/Monte_Carlo_method

This program throws random ‘darts’ at a ‘dartboard’. It then uses the number of darts that landed on/off the board, and calculates pi based on a simple mathematic principle. The more darts thrown, the more accurate pi becomes.

This is visualized in a simple JFrame with pixels simulating darts thrown. It is runnable on any computer with Java JRE Installed.

The compiled version is available in the "dist" folder.

Screenshot

About

Calculation of pi by randomly throwing darts onto a dartboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages