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 17:00
Jose bought 20 shares of netflix at the close price of $117.98. in a few years, jose sells all of his shares at $128.34. how much money did jose make? a.) $192.50 b.) $207.20 c.) $212.50 d.) $224.60
Answers: 1
question
Mathematics, 21.06.2019 18:30
It says factor each expression 49x-28?
Answers: 1
question
Mathematics, 21.06.2019 20:30
If a 36 inch yardstick casts a 21 foot shadow, how tall is a building whose shadow is 168 feet? what is the scale factor
Answers: 1
question
Mathematics, 21.06.2019 22:30
The moats separating people from the animals are 5 m wide for lions and 4 m wide for the elephants. if the lion’s moat is 4 m deep, how deep should the elephants’ moat be?
Answers: 1
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
Mathematics, 12.06.2021 23:40
question
Spanish, 12.06.2021 23:40