Description Usage Arguments Value Author(s) Examples
Estimating pi by simulation Buffons experiment.
1 | buffons.needle(N,l,d)
|
N |
is number of needles to be thrown. N has to be a positive integer. |
l |
is the length of the needles. the length has to be positive and numeric. |
d |
is the distance between the lines on the floor. The distance has to be positive and numeric. |
Returns the estimated value of pi by Buffons experiment.
Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk
1 | buffons.needle(N=1000, l=1, d=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.