#7 Min/Max(a, b, .., n) but not Avg(...)?

open
nobody
None
5
2004-07-27
2004-07-27
No

I know there is already an ArithmeticMean({a, b, ...,
n}) function, but could we have an average function
that takes arguments like Min and Max do instead of in
a {} list? Or in addition, provide Min & Max that can
also take {} lists?

Max(1, 2, 3) ==> 3
Min(1, 2, 3) ==> 1

ArithmeticMean({1, 2, 3}) ==> 2
Nicer: Avg(1, 2, 3) ==> 2

On the other hand, maybe Min & Max should be able to
process lists too?

I know, I know, an Avg function is easy to implement by
hand but so can most other functions.

Great tool by the way, I hope to be able to make good
use of it.

Discussion


Log in to post a comment.