Description Usage Arguments Value Author(s) Examples
This function estimates the probability of a needle to hit a line, P(hit), and pi by performing Buffon's experiment.
1 | buffon(N,l,d)
|
N |
number of needles to be thrown on the floor. |
l |
length of the needle. |
d |
distance between the stripes on the floor. |
P(hit)
pi
Katrine Eriksen and Katrine Bach
Department of mathematics and computer science (IMADA)
University of Southern Denmark
kater13@student.sdu.dk and kabac13@student.sdu.dk
1 | buffon(1000,1,1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.