Averages/Arithmetic mean: Difference between revisions

Content added Content deleted
Line 767: Line 767:
<lang dc>[[Nada Mean: ]Ppq]sq
<lang dc>[[Nada Mean: ]Ppq]sq
zd0=qsn [stack length = n]sz
zd0=qsn [stack length = n]sz
1k [precision can be altered]sz [+z1<+]ds+x [Sum: ]Pp
1k [precision can be altered]sz [+z1<+]ds+x[Sum: ]Pp
ln/ [Mean: ]Pp [Sample size: ]Plnp</lang>
ln/[Mean: ]Pp [Sample size: ]Plnp</lang>


By saving the sample set "1 2 3 5 7" in a file (sample.dc), the routine, listing summary information, could be called in a command line:
By saving the sample set "1 2 3 5 7" in a file (sample.dc), the routine, listing summary information, could be called in a command line: