Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 477 Bytes

File metadata and controls

9 lines (6 loc) · 477 Bytes

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