Averages/Arithmetic mean: Difference between revisions
→{{header|PostScript}}
m (→{{header|UNIX Shell}}: Do not exit when outside of subshell.) |
|||
Line 1,021:
sum ==
}def
</lang>
{{libheader|initlib}}
{{works with|Ghostscript}}
<lang postscript>
/avg {
dup length
{0 gt} {
exch 0 {add} fold exch div
} {
exch pop
} ifte
}.
</lang>
|