Buffon experiment steps:
1) Take a piece of white paper and draw many parallel lines with an interval of a on it.
2) Take a needle with a length of l(l=a/2), throw it randomly on the paper with parallel straight lines for n times, and observe the times when the needle intersects with the straight line, and record it as m. ..
3) Calculate the probability that the needle intersects the straight line.
/kloc-In the 8th century, French mathematicians Buffon and leclerc put forward the problem of throwing needles, which was recorded in Buffon's book published in 1777: "Draw a group of parallel lines with an interval of A on a plane, throw a needle with a length of l(l=a/2) at random on this plane, and find the probability that this needle intersects any parallel line." Buffon himself proved that this probability is:
P=2l/(πa)π is π.
Using this formula, the approximate value of pi can be obtained by probability method.