Page 1 of 1

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

Posted: Mon Jul 11, 2022 12:07 pm
by answerhappygod
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 1
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 1 (28.57 KiB) Viewed 43 times
I am trying to use MATLAB to solve this but have been gettingwrong values, kindly help, I definitely upvote. Need solution fast.PLEASE ONLY USE MATLAB.
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?