Cumulative standard deviation: Difference between revisions

m
(Add 360 Assembly section)
Line 11:
=={{header|360 Assembly}}==
For maximum compatibility, this program uses only the basic instruction set.
<lang 360asm>******** Standard deviation of a population
******** Standard deviation of a population
STDDEV CSECT
USING STDDEV,R13
Line 115 ⟶ 114:
BUF DC CL80'N=1 ITEM=1 AVG=1.234 STDDEV=1.234 '
YREGS
END STDDEV</lang>
</lang>
{{out}}
<pre>N=1 ITEM=2 AVG=2.000 STDDEV=0.000
<pre>
N=1 ITEM=2 AVG=2.000 STDDEV=0.000
N=2 ITEM=4 AVG=3.000 STDDEV=1.000
N=3 ITEM=4 AVG=3.333 STDDEV=0.942
Line 126 ⟶ 123:
N=6 ITEM=5 AVG=4.000 STDDEV=1.000
N=7 ITEM=7 AVG=4.428 STDDEV=1.399
N=8 ITEM=9 AVG=5.000 STDDEV=2.000</pre>
</pre>
 
 
=={{header|Ada}}==
1,392

edits