exercise:1f8dc0a19b: Difference between revisions

From Stochiki
No edit summary
No edit summary
 
Line 1: Line 1:
Alter the program ''' MonteCarlo''' to estimate the area under the
Alter the program ''' MonteCarlo''' to estimate the area under the graph of <math>y = 1/(x + 1)</math> in the unit square in the same way as in [[exercise:58cc566ddc|Exercise]].  Calculate the true value of this area and use
graph of <math>y = 1/(x + 1)</math> in the unit square in the same way as in Exercise \ref
{exer 2.1.4}.  Calculate the true value of this area and use
your simulation results to estimate the value of <math>\log 2</math>.  How accurate is your
your simulation results to estimate the value of <math>\log 2</math>.  How accurate is your
estimate?
estimate?

Latest revision as of 21:24, 12 June 2024

Alter the program MonteCarlo to estimate the area under the graph of [math]y = 1/(x + 1)[/math] in the unit square in the same way as in Exercise. Calculate the true value of this area and use your simulation results to estimate the value of [math]\log 2[/math]. How accurate is your estimate?