6. Write a MATLAB code to approximate 6= e-2² +e-y² 2 dady, where D = {(x, y) such that x² + y² ≤ 1}. using the Monte Ca
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
6. Write a MATLAB code to approximate 6= e-2² +e-y² 2 dady, where D = {(x, y) such that x² + y² ≤ 1}. using the Monte Ca
This is the full question. The output needs to be such that the 1st column prints 10^d and the 2nd column prints the approximation calculated through Monte Carlo Method. The last statement of the question is something which can only be answered once the output is compiled.
6. Write a MATLAB code to approximate 6= e-2² +e-y² 2 dady, where D = {(x, y) such that x² + y² ≤ 1}. using the Monte Carlo method. Run the code with a sample of M = 10 points with d= 2,3,... Write down a table of your results where the first column is 10d and the second column is the approximation. How large is d until you do not see anymore difference between two consecutive approximations?