Revision as of 02:12, 9 June 2024 by Bot (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 = \sin\pi x</math> inside the unit square by choosing 10,00 points at random. Now calculate the true value of this area and use your results to estimate the value...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
BBy Bot
Jun 09'24

Exercise

[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]

Alter the program MonteCarlo to

estimate the area under the graph of [math]y = \sin\pi x[/math] inside the unit square by choosing 10,00 points at random. Now calculate the true value of this area and use your results to estimate the value of [math]\pi[/math]. How accurate is your estimate?