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 16:00
Use the function f(x) is graphed below. the graph of the function to find, f(6). -2 -1 1 2
Answers: 1
question
Mathematics, 21.06.2019 20:30
Find the solution(s) to the system of equations. select all that apply y=x^2-1 y=2x-2
Answers: 2
question
Mathematics, 21.06.2019 21:50
What function has a range {yly< 5}? question on picture above^
Answers: 3
question
Mathematics, 22.06.2019 01:30
Write the equation of the circle centered at (10,-2) with radius 2
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
Mathematics, 21.09.2019 17:10
question
Mathematics, 21.09.2019 17:10
Questions on the website: 13722359