Description Usage Arguments Value Author(s) Examples
The function estimates pi by simulating a throw with needles.
1 | buffon.needle(N = 1000, l = 1, d = 1)
|
N |
the number of needles thrown |
l |
the length of the needle |
d |
the distance between the stripes on the floor |
Estimated pi and the probability of hit
Nina Louise Pedersen
Institute of Mathematics and Computer Science (IMADA)
University of Sourthern Denmark, (SDU)
npede14@student.sdu.dk
1 | buffon.needle(3000,l = 2, d = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.