Approximating pl: Suppose you throw darts at the unit square shown below. Assume your darts land in the square and that any spot is equally likely to any other spot. a) What fraction of the darts should land in the quarter circle? Use the fact that the probability of an event is equal to its area if the entire space of possibilities has area 1. b) Using part a, write an R simulation that approximates pi. Your code should simulate 10000 dart throws. c) What is the upper end of how many dart throws your computer can simulate in a reasonable amount of time? What type of accuracy do you seem to be getting in your approximation of pi with this upper bound?
Approximating pl: Suppose you throw darts at the unit square shown below. Assume your darts land in the square and that any spot is equally likely to any other spot. a) What fraction of the darts should land in the quarter circle? Use the fact that the probability of an event is equal to its area if the entire space of possibilities has area 1. b) Using part a, write an R simulation that approximates pi. Your code should simulate 10000 dart throws. c) What is the upper end of how many dart throws your computer can simulate in a reasonable amount of time? What type of accuracy do you seem to be getting in your approximation of pi with this upper bound?
Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter4: Equations Of Linear Functions
Section4.6: Regression And Median-fit Lines
Problem 2CYU
Related questions
Question
None
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Elementary Geometry For College Students, 7e
Geometry
ISBN:
9781337614085
Author:
Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:
Cengage,
Elementary Geometry for College Students
Geometry
ISBN:
9781285195698
Author:
Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:
Cengage Learning
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Elementary Geometry For College Students, 7e
Geometry
ISBN:
9781337614085
Author:
Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:
Cengage,
Elementary Geometry for College Students
Geometry
ISBN:
9781285195698
Author:
Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning