Skip to content

cachevector/mcpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Approximating Pi using Monte Carlo Method

A simple c++ project that approximates the value of pi using the Monte Carlo method. It randomly samples points inside a unit square, checks how many fall within a quarter circle, and uses that ratio to estimate π.

The approximation is plotted using gnuplot to show how the value converges over time.

Plot

Here's what the output looks like after running the simulation: Pi Approximation Plot

About

Approximating Pi using Monte Carlo Method

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published