exercise:8eee51386b: 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> Write a program to choose a point <math>(X,Y)</math> ''at random'' in a square of side 20 inches, doing this 10,00 times, and recording what fraction of the outcomes fall within 19 inches of the center; of these, what fraction fall between 8 and...") |
No edit summary |
||
Line 5: | Line 5: | ||
\newcommand{\secstoprocess}{\all} | \newcommand{\secstoprocess}{\all} | ||
\newcommand{\NA}{{\rm NA}} | \newcommand{\NA}{{\rm NA}} | ||
\newcommand{\mathds}{\mathbb}</math></div> Write a program to choose a point <math>(X,Y)</math> ''at random'' in a | \newcommand{\mathds}{\mathbb}</math></div> Write a program to choose a point <math>(X,Y)</math> ''at random'' in a square of side 20 inches, doing this 10,00 times, and recording what fraction of the outcomes fall within 19 inches of the center; of these, what fraction fall | ||
square of side 20 inches, doing this 10,00 times, and recording what fraction of the | |||
outcomes fall within 19 inches of the center; of these, what fraction fall | |||
between 8 and 10 inches of the center; and, of these, what fraction fall within | between 8 and 10 inches of the center; and, of these, what fraction fall within | ||
the first quadrant of the square. How do these results compare with those of | the first quadrant of the square. How do these results compare with those of | ||
Exercise [[exercise:9d90fef1a2 |Exercise]]? | Exercise [[exercise:9d90fef1a2 |Exercise]]? |
Revision as of 22:30, 12 June 2024
[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]
Write a program to choose a point [math](X,Y)[/math] at random in a square of side 20 inches, doing this 10,00 times, and recording what fraction of the outcomes fall within 19 inches of the center; of these, what fraction fall
between 8 and 10 inches of the center; and, of these, what fraction fall within the first quadrant of the square. How do these results compare with those of Exercise Exercise?