exercise:983dd5de86: 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 random number <math>X</math> in the interval <math>[2,10]</math> 1000 times and record what fraction of the outcomes satisfy <math>X > 5</math>, what fraction satisfy <math>5 < X < 7</math>, and what fraction sati...")
 
No edit summary
 
Line 1: Line 1:
<div class="d-none"><math>
Write a program to choose a random number <math>X</math> in the interval <math>[2,10]</math> 1000 times and record what fraction of the outcomes satisfy <math>X  >  5</math>, what fraction satisfy <math>5  <  X  <  7</math>, and what fraction satisfy
\newcommand{\NA}{{\rm NA}}
<math>x^2 - 12x + 35  >  0</math>.  How do these results compare with [[exercise:1828f810e4 |Exercise]]?
\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 random number <math>X</math> in
the interval <math>[2,10]</math> 1000 times and record what fraction of the outcomes
satisfy <math>X  >  5</math>, what fraction satisfy <math>5  <  X  <  7</math>, and what fraction satisfy
<math>x^2 - 12x + 35  >  0</math>.  How do these results compare with Exercise [[exercise:1828f810e4 |Exercise]]?

Latest revision as of 23:27, 12 June 2024

Write a program to choose a random number [math]X[/math] in the interval [math][2,10][/math] 1000 times and record what fraction of the outcomes satisfy [math]X \gt 5[/math], what fraction satisfy [math]5 \lt X \lt 7[/math], and what fraction satisfy [math]x^2 - 12x + 35 \gt 0[/math]. How do these results compare with Exercise?