Description Usage Arguments Value Author(s) Examples
Compute an approximation of pi by drawing x and y coordinates from a uniform distribution and checking whether or not they fall inside a unit circle.
1 | estimate_pi(B = 5000, seed = 10)
|
B |
A |
seed |
A |
A list
containing the following attributes:
Estimated value of pi
Dataframe of the generated coordinates with an indication whether or not the coordinate is inside the circle
Vanessa Armistead
Bart Roes
Luisa Pricken
Ameni Rouatbi
1 | estimate_pi(B=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.