Question: - Exercise Part (a) Perform a simulation as described above, setting e = d = 1. Write a function buffon_needle(num) that will drop num needles

- Exercise Part (a) Perform a simulation as described above, setting e = d = 1. Write a function buffon_needle(num) that will drop num needles and return (x), the fraction of needles in your samples that cross a line. (Neglect the width of the needles and assume they are simply straight line segments.) Hint: Label each end of the needle with coordinates in the plane of the floor, 1 = (x1, y) and 12 = (x2, y2). First, randomly sample i, noting: There is a periodic translational symmetry in the x-direction, so you can limit your attention to 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
