QUESTION.
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?
PLEASE USE ONLY MATLAB PROGRAMMING to SOLVE THE 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