Anonymous user
Averages/Arithmetic mean: Difference between revisions
m
→{{header|dc}}
m (→{{header|dc}}) |
|||
Line 767:
<lang dc>[[Nada Mean: ]Ppq]sq
zd0=qsn [stack length = n]sz
1k [precision can be altered]sz [+z1<+]ds+x
ln/
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:
|