exercise:8eee51386b: Difference between revisions
From Stochiki
No edit summary |
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 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 | \newcommand{\mathds}{\mathbb}</math></div> | ||
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 | |||
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:9d90fef1a2 |Exercise]]? |
Latest revision as of 22:32, 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?