Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use MATLAB. Problem 5. Imagine the sqaure dartboard shown below with the red circle inscribed?. The area of the circle is of course ara,
Please use MATLAB.
Problem 5. Imagine the sqaure dartboard shown below with the red circle inscribed?. The area of the circle is of course ara, and the area of the squre is 4r2 (since the length of a side is 2r). Now imaging throwing darts randomly at the square. 7 ~ 1 x 4 = 3.2 1. Develop a program which can calculate a using the fraction of darts within the circle. 2. Make a plot similar to the above which colors the dart points based on whether they are within the circle. 3. For 100 tests of your program, what is the mean and standard deviation of your a calculation if you throw 10 darts? 100 darts? 1000 darts? 1,000,000 darts? 4. Create histrograms of your a calculations for 1000 runs of your program for throws of 10 darts, 100 darts, and 1000 darts. 5. Would it be more accurate to calculate a by averaging 10 throws of 1000 darts, or 1000 throws of 10 dartsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started