Description Usage Arguments Value Author(s) Examples
This function takes 3 arguments to simulate Buffon's experiment to estimate pi.
1 | buffon.needle(n=10, l=1, d=1)
|
n |
is a positive integer value that specifies how many needles that are tossed in the simulation. |
l |
is a positive number that specifies the length of the needles tossed in the simulation. |
d |
is a positive number that specifies the distance between the stripes on the floor in the simulation. |
returns pi estimated by simulating Buffon's experiment.
Emil H. Andersen
Department of Mathematics and Computer Science (IMADA)
University of Southern Denmark, Denmark
emila14@student.sdu.dk
1 2 | #Add examples for the function to explain to others how they can be used
buffon.needle(n=3408, l=2.5,d=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.