Calculate Pi using Monte Carlo Method
Give a number of random numbers num
.
./CalculatePi num
You'll get the calclutated π(Pi) using the random numbers.
- 2022/6/21 : Stratified Sampling added.
Monte Carlo Method
- C++11
Calculate Pi using Monte Calro Method
Calculate Pi using Monte Carlo Method
Give a number of random numbers num
.
./CalculatePi num
You'll get the calclutated π(Pi) using the random numbers.
Monte Carlo Method
Calculate Pi using Monte Calro Method