File: README.md

package info (click to toggle)
rocrand 5.3.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 37,268 kB
  • sloc: cpp: 95,463; f90: 2,847; python: 1,648; sh: 293; xml: 210; makefile: 49
file content (13 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Examples

## Estimating Pi using Monte Carlo method

`pi.py` estimates the value of Pi using NumPy's and both hipRAND's pseudo-random
(Monte Carlo method) and quasi-random (Quasi-Monte Carlo method) number
generators.

The example requires [Matplotlib](http://matplotlib.org/users/installing.html#linux-using-your-package-manager).

References:
* https://en.wikipedia.org/wiki/Monte_Carlo_method
* https://en.wikipedia.org/wiki/Quasi-Monte_Carlo_method