exercise:1f8dc0a19b: Difference between revisions

From Stochiki
(Created page with "<div class="d-none"><math> \newcommand{\NA}{{\rm NA}} \newcommand{\mat}[1]{{\bf#1}} \newcommand{\exref}[1]{\ref{##1}} \newcommand{\secstoprocess}{\all} \newcommand{\NA}{{\rm NA}} \newcommand{\mathds}{\mathbb}</math></div> 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 \ref {exer 2.1.4}. Calculate the true value of this area and use your simulation results to...")
 
No edit summary
Line 1: Line 1:
<div class="d-none"><math>
Alter the program ''' MonteCarlo''' to estimate the area under the
\newcommand{\NA}{{\rm NA}}
\newcommand{\mat}[1]{{\bf#1}}
\newcommand{\exref}[1]{\ref{##1}}
\newcommand{\secstoprocess}{\all}
\newcommand{\NA}{{\rm NA}}
\newcommand{\mathds}{\mathbb}</math></div> 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 \ref
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
{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?

Revision as of 21:22, 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 \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 estimate?