subject

The Buffon Needle Experiment. The following experiment was devised by Comte Georges-Louis Leclerc de Buffon (1707-1788), a French naturalist. A needle length 1 inch is dropped onto paper that is ruled with lines 2 inches apart. If the needle drops onto a line, we count it as a bit. (See Figure 10.) Buffon discovered that the quotient tries/approximates pi. For the Buffon needle experiment, you must generate two random numbers: one to describe the starting position and one to describe the angle of the needle with the x-axis. Then you need to test whether the needle touches a grid line. Generate the lower point of the needle. Its x-coordinate is irrelevant, and you may assume its y-coordinate y_low to be any random number between 0 and 2. The angle alpha between the needle and the x -axis can be any value between 0 degrees and 180 degrees (pi radians). The upper end of the needle has y-coordinate y_high = y_low + sin alpha The needle is a hit if y_high is at least 2, as shown in Figure 11.Stop after 10,000 tries and print the quotient tries/. (This program is not suitable for computing the value of pi. You need pi in the computation of the angle.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
You know the right answer?
The Buffon Needle Experiment. The following experiment was devised by Comte Georges-Louis Leclerc de...
Questions
question
Mathematics, 03.08.2019 10:00
question
Physics, 03.08.2019 10:00