Statistics/Normal distribution: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: increased decimal digits, added whitespace and comments, elided 2nd graph, optimized some functions.) |
m (→{{header|REXX}}: changed font size to 75%.) |
||
Line 2,377: | Line 2,377: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
The REXX language doesn't have any "higher math" BIF functions like SIN, COS, LN, LOG, SQRT, POW, etc, |
The REXX language doesn't have any "higher math" BIF functions like SIN, COS, LN, LOG, SQRT, POW, etc, |
||
<br>so we hoi polloi programmers have to roll our own. |
<br>so we hoi polloi programmers have to roll our own. |
||
<lang rexx>/*REXX program generates 10,000 normally distributed numbers (Gaussian distribution).*/ |
<lang rexx>/*REXX program generates 10,000 normally distributed numbers (Gaussian distribution).*/ |
||
Line 2,438: | Line 2,438: | ||
(The output shown when the screen size is 62<small>x</small>140.) |
(The output shown when the screen size is 62<small>x</small>140.) |
||
<pre> |
|||
The graph is shown at <big>'''<sup>3</sup>/<sub>4</sub>''' size. |
|||
<pre style="font-size:75%"> |
|||
number of data points = 10000 |
number of data points = 10000 |
||
minimum = -3.8181072371544448250 |
minimum = -3.8181072371544448250 |