subject
Mathematics, 17.09.2019 21:10 angela6844

Onsider a square defined by −1 ≤ x, y ≤ 1 with a circle inside it with radius r = 1. the area of the circle is (obviously) πr2; however, let’s assume that you don’t know that, and that you don’t know the formula for the area of a circle (but you do know the area of a square). instead, try to approximately calculate that area using a large number of random points (x, y). give your answer with 5 significant digits, and give your answer when using both 100 and 1 random points. hints: • generate random points (x, y) that are uniformly distributed over the square (i. e., that are equally likely to fall anywhere within that square). and then count how many of those points fall within the circle.-in matlab, you can generate uniformly distributed random points using the functionrand(n,1), which creates an array of n random numbers between 0 and 1. we need x and y between -1 and 1, so we need to dox=2*(rand(n,1)-0.5); y=2*(rand(n,1)-0.5); code this with matlab.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 15:40
If the slope of one line equals the slope of another line then ? a) the two lines are intersecting lines b) the two lines are perpendicular lines c) the two lines are parallel lines d) the two lines always have very steep slopes
Answers: 3
question
Mathematics, 21.06.2019 23:00
Aremote-controlled boat can travel at 4 feet per second in calm water. the boat traveled 48 feet with the current, and then it traveled 16 feet against the current in the same amount of time. how fast is the current?
Answers: 1
question
Mathematics, 22.06.2019 00:50
You are a male who just graduated from college with a bachelor's degree. you have a job paying $50,780.00/yr. a. how does your salary compare to the yearly median earnings for a male with a bachelor's degree? b. what is the difference between the yearly median earnings for a male with a bachelor's degree compared to a male who does not attend college after earning a high school diploma?
Answers: 2
question
Mathematics, 22.06.2019 01:30
The unpaid balance on a mastercard charge was $1,056.23. during the month, payments of $300 and $250 were made and charges of $425 and $274.16 were added. if the finance charge is 1.2% per month on the unpaid balance, find the new balance at the end of the month. $1,205.39 $1,218.06 $918.06 $1,768.06
Answers: 2
You know the right answer?
Onsider a square defined by −1 ≤ x, y ≤ 1 with a circle inside it with radius r = 1. the area of the...
Questions
question
Social Studies, 02.11.2019 08:31
question
Biology, 02.11.2019 08:31
question
History, 02.11.2019 08:31
question
Social Studies, 02.11.2019 08:31
Questions on the website: 13722367