Description Usage Arguments Value Author(s) Examples
This function makes an approximtion of the number pi based on a random drawing of points between -1 and 1 and establishes whether they are or not in a circle of radius 1.
1 | estimate_pi(B = 5000, seed = 10)
|
B |
the length one numeric vector specifying the number of simulations. |
seed |
allows the function to have always the same output |
A matrix of two coordinates between -1 and 1 as well as a boolean output for each iterations
Germano David
Lomazzi Vincent
Bron Luca
Raisin Edgar
Grandadam Patrik
1 | estimate_pi(B = 5000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.